summaryrefslogtreecommitdiff
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..358786e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Aleksey Stepanov <blueingreen@bluig.space>
+
+_pkgname=swob
+pkgname="${_pkgname}-git"
+pkgver=r23.7898ea7
+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}"
+ (
+ set -o pipefail
+ git describe --long --abbrev=7 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
+ )
+}
+
+package() {
+ cd "${_pkgname}"
+
+ DESTDIR="$pkgdir" ./install.sh
+}