alarm-clockworkpi-uconsole/pkgs/clockworkpi-speaker-auto-switch/PKGBUILD

23 lines
744 B
Bash

# Maintainer: Peter Cai <peter@typeblog.net>
pkgname=clockworkpi-speaker-auto-switch
pkgver=1.0.0
pkgrel=1
pkgdesc="Auto-switching service for speaker on ClockworkPi devices"
arch=('any')
license=('WTFPL')
depends=("raspberrypi-utils")
source=(
'clockworkpi-speaker-auto-switch'
'clockworkpi-speaker-auto-switch.service'
)
sha256sums=('4ae90c9ab2b9411d54f2320fff7b0fa573e9db14dab8449a47ecbcb49e4adf1d'
'f63a9735472e990461ee5e1599ea56df1d6aab091254d7b38a04df692b51edc2')
package() {
cd "$srcdir"
install -Dm755 clockworkpi-speaker-auto-switch "$pkgdir/usr/bin/clockworkpi-speaker-auto-switch"
install -Dm644 clockworkpi-speaker-auto-switch.service "$pkgdir/etc/systemd/system/clockworkpi-speaker-auto-switch.service"
}