blob: 21f418ea93233d52711165a700b427434a708810 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Maintainer: Erik Reider <erik.reider@protonmail.com>
pkgname=sway-audio-idle-inhibit-git
_ver=0.1.2
pkgver=0.1.2.r45.7a70ef1
pkgrel=1
pkgdesc="Prevents swayidle from sleeping while any application is outputting or receiving audio"
_pkgfoldername=SwayAudioIdleInhibit
url="https://github.com/ErikReider/$_pkgfoldername"
arch=(
'x86_64'
'aarch64' # ARM v8 64-bit
'armv7h' # ARM v7 hardfloat
)
license=(GPL)
depends=("wayland>=1.14.91" "wayland-protocols" "libpulse")
makedepends=(gcc meson git)
optdepends=("swaync-git" "swaysettings-git")
source=("git+$url")
sha256sums=('SKIP')
pkgver() {
cd $_pkgfoldername
printf "$_ver.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd $_pkgfoldername
git checkout main
git pull
}
build() {
arch-meson $_pkgfoldername build
ninja -C build
}
package() {
DESTDIR="$pkgdir" meson install -C build
}
|