From 3526051831e2cd79b001f6fe7a4da933b25477be Mon Sep 17 00:00:00 2001 From: Stepanov Aleksey Date: Tue, 21 Oct 2025 15:05:00 +0500 Subject: Init --- .SRCINFO | 20 ++++++++++++++++++++ PKGBUILD | 30 ++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD 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 + +_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 +} -- cgit