49 lines
1.2 KiB
Bash
49 lines
1.2 KiB
Bash
# Maintainer: Sean Doran <sdoran35@gmail.com>
|
|
pkgname=turn-up-arch
|
|
pkgver=0.1.0
|
|
pkgrel=1
|
|
pkgdesc="USB serial knob/button mixer daemon for PipeWire/PulseAudio on Linux"
|
|
arch=('any')
|
|
url="https://github.com/sean351/turn-up-arch"
|
|
license=('MIT')
|
|
depends=(
|
|
'python>=3.10'
|
|
'python-pyserial'
|
|
'python-pulsectl'
|
|
'pipewire-pulse' # or pulseaudio — provides the PulseAudio socket
|
|
)
|
|
makedepends=(
|
|
'python-build'
|
|
'python-installer'
|
|
'python-hatchling'
|
|
)
|
|
optdepends=(
|
|
'playerctl: media key support via button commands'
|
|
)
|
|
backup=()
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/sean351/turn-up-arch/archive/refs/tags/v$pkgver.tar.gz")
|
|
sha256sums=('SKIP') # Replace with actual checksum before submitting to AUR
|
|
|
|
build() {
|
|
cd "$pkgname-$pkgver"
|
|
python -m build --wheel --no-isolation
|
|
}
|
|
|
|
package() {
|
|
cd "$pkgname-$pkgver"
|
|
|
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
|
|
|
# Systemd user service
|
|
install -Dm644 contrib/turnupd.service \
|
|
"$pkgdir/usr/lib/systemd/user/turnupd.service"
|
|
|
|
# License
|
|
install -Dm644 LICENSE \
|
|
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
|
|
# Documentation
|
|
install -Dm644 README.md \
|
|
"$pkgdir/usr/share/doc/$pkgname/README.md"
|
|
}
|