# Maintainer: Aleksey Steapanov _pkgname=swob pkgname="${_pkgname}-git" pkgver=0 pkgrel=1 pkgdesc="Volume and brightness controls for wayland, using wob" arch=('any') url="https://git.sr.ht/~blueingreen/swob" depends=('sh' 'coreutils' 'sed' 'wob' 'alsa-utils' 'brightnessctl') optdepends=('wireplumber: wpctl, for pipewire support' 'libpulse: pactl, for pulseaudio support') license=(GPL-3.0-or-later) provides=(swob) source=("${_pkgname}::git+https://git.sr.ht/~blueingreen/swob") b2sums=(SKIP) pkgver() { cd "${_pkgname}" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } package() { cd "${_pkgname}" install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE" install -Dm755 "$_pkgname" "$pkgdir/usr/bin/$_pkgname" }