/
PKGBUILD
45 lines (41 loc) · 1.39 KB
/
PKGBUILD
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
40
41
42
43
44
45
# Maintainer: tinywrkb <tinywrkb@gmail.com>
# Maintainer: Moritz Poldrack <moritz at poldrack dot dev>
pkgname=yambar-x11free
pkgver=1.8.0
pkgrel=1
pkgdesc='Modular status panel for X11 and Wayland, inspired by polybar, without X11 backend'
arch=(x86_64)
url='https://codeberg.org/dnkl/yambar'
license=(MIT)
depends=(fcft libyaml systemd-libs wayland)
# systemd make dependency because libudev.pc is incorrectly packaged in systemd instead of systemd-libs
makedepends=(alsa-lib git libmpdclient meson scdoc systemd tllist wayland-protocols)
optdepends=('alsa-lib: for the ALSA module'
'json-c: for the XKB module'
'libmpdclient: for the MPD module')
conflicts=(yambar)
provides=(libdynlist.so yambar)
_commit=3cc142a27302adbb4a314ea95c901a5216b06d98 # tags/1.8.0
source=("git+https://codeberg.org/dnkl/yambar#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd yambar
git describe --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
local meson_options=(
--buildtype release
-D backend-x11=disabled
-D core-plugins-as-shared-libraries=true
)
arch-meson yambar build "${meson_options[@]}"
meson compile -C build
}
check() {
meson test -C build --print-errorlogs
}
package() {
meson install -C build --destdir "${pkgdir}"
install -Dm644 yambar/LICENSE -t "$pkgdir"/usr/share/licenses/${pkgname}/
ln -s -t "$pkgdir"/usr/lib/ yambar/libdynlist.so
}