aboutsummaryrefslogtreecommitdiff
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD35
1 files changed, 18 insertions, 17 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 6b06c54..d6160cf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,27 @@
-pkgname=swob-git
+# Maintainer: Aleksey Steapanov <blueingreen@bluig.space>
+
+_pkgname=swob
+pkgname="${_pkgname}-git"
pkgver=0
pkgrel=1
-pkgdesc='Volume and brightness controls for wayland, using wob'
-arch=(any) # limited only by dependencies
-depends=(sh coreutils sed wob alsa-utils brightnessctl)
-optdepends=( 'wireplumber: wpctl, for pipewire support'
- 'libpulse: pactl, for pulseaudio support' )
-url='https://git.sr.ht/~remph/swob'
+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=("git+$url")
+source=("${_pkgname}::git+https://git.sr.ht/~blueingreen/swob")
b2sums=(SKIP)
-pkgver() (
- cd swob
- set -o pipefail
- git describe --long --abbrev=7 --tags 2>/dev/null |
- sed -e 's/^v//' -e 's/[^-]*-g/r&/' -e y/-/./ ||
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
-)
+pkgver() {
+ cd "${_pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
package() {
- cd swob
- DESTDIR=$pkgdir ./install.sh
+ cd "${_pkgname}"
+
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
+ install -Dm755 "$_pkgname" "$pkgdir/usr/bin/$_pkgname"
}