Commit 55104b1c authored by fkardame's avatar fkardame 💬

Initaite PKG

parents
#Maintainer: Furkan Kardame <furkan@fkardame.com>
#Contributor: Tobias Schram <tsys@manjaro.org>
pkgname=pinebookpro-audio
pkgver=1
pkgrel=1
pkgdesc="Pine64 Pinebook Pro - Audo Switch Audio Output"
arch=('aarch64')
url="https://gitlab.manjaro.org/tsys/hpdet-pinebookpro"
license=('GPL')
depends=('acpid' 'alsa-utils')
source=("audio_jack_plugged_in"
'audio_jack_plugged_in.sh')
md5sums=('03a8c88234b393f5b1c38e75ff68aa2a'
'4d395caad54fb1718a503754c034ebc2')
package() {
install -Dm644 "${srcdir}/audio_jack_plugged_in" -t "${pkgdir}/etc/acpi/events/"
install -Dm755 "${srcdir}/audio_jack_plugged_in.sh" -t "${pkgdir}/etc/acpi/"
}
event=jack/headphone/*
action=/etc/acpi/audio_jack_plugged_in.sh %e
#!/usr/bin/env sh
case "$3" in
plug) amixer sset Speaker off ;;
unplug) amixer sset Speaker on ;;
esac
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment