summaryrefslogtreecommitdiff
path: root/opt/sfwbar/MAKEPKG
blob: a1de84fa296eb4240d0bc5e043d474d9996f86dd (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
40
41
42
43
#!/bin/mkpkg
# description: Flexible taskbar for Wayland compositors
# url: https://github.com/LBCrion/sfwbar

name=sfwbar
version=1.0_beta17
release=1
depends=(gtk3 gtk-layer-shell json-c wayland wayland-protocols libxkbcommon)
makedeps=(meson patchelf)
source=(https://github.com/LBCrion/sfwbar/archive/refs/tags/v$version.tar.gz)
renames=($name-$version.tar.gz)

sha256sums=(
    "a4915bc7dd0873c45d0d6b01b070e39a91fd16cfadf730d6a9e48db68a8cd09e"
)

build() {
	cd $name-$version

	meson setup build \
		--prefix=/usr \
		--libdir=lib \
		--buildtype=plain 

	meson compile -C build
	DESTDIR=$PKG meson install -C build

	rm -rf $PKG/usr/share/doc
	rm -rf $PKG/usr/share/locale
}

post_build() {
	for f in $PKG/usr/lib/sfwbar/*.so; do
		patchelf --set-rpath '$ORIGIN' "$f"
	done
}

signify() {
    untrusted comment: public key
    RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}

# vim: filetype=sh