summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Stepanov Aleksey <blueingreen@bluig.space>2025-10-21 15:05:00 +0500
committerLibravatar Stepanov Aleksey <blueingreen@bluig.space>2025-10-21 15:05:00 +0500
commit3526051831e2cd79b001f6fe7a4da933b25477be (patch)
tree9ae1f8ff51400b0ef3b5c23a551c4d04600936e2
Init
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD30
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 0000000..6e8485b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = swob-git
+ pkgdesc = Volume and brightness controls for wayland, using wob
+ pkgver = r23.7898ea7
+ pkgrel = 1
+ url = https://git.sr.ht/~blueingreen/swob
+ arch = any
+ license = GPL-3.0-or-later
+ depends = sh
+ depends = coreutils
+ depends = sed
+ depends = wob
+ depends = alsa-utils
+ depends = brightnessctl
+ optdepends = wireplumber: wpctl, for pipewire support
+ optdepends = libpulse: pactl, for pulseaudio support
+ provides = swob
+ source = swob::git+https://git.sr.ht/~blueingreen/swob
+ b2sums = SKIP
+
+pkgname = swob-git
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
+}