aboutsummaryrefslogtreecommitdiffstats
path: root/community/polybar/APKBUILD
blob: 74deebbefd8844d10071a0883b068c923b3c2a32 (plain) (blame)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Contributor: Taner Tas <taner76@gmail.com>
# Maintainer: Taner Tas <taner76@gmail.com>
pkgname=polybar
pkgver=3.5.6
pkgrel=2
pkgdesc="fast and easy-to-use tool for creating status bars"
url="https://polybar.github.io/"
arch="all"
license="MIT"
makedepends="
	alsa-lib-dev
	cairo-dev
	cmake
	curl-dev
	i3wm-dev
	jsoncpp-dev
	libmpdclient-dev
	libnl3-dev
	libxcb-dev
	pulseaudio-dev
	python3
	xcb-proto
	xcb-util-cursor-dev
	xcb-util-image-dev
	xcb-util-renderutil-dev
	xcb-util-wm-dev
	xcb-util-xrm-dev
	"
subpackages="
	$pkgname-doc
	$pkgname-bash-completion
	$pkgname-zsh-completion
	"
install="
	$pkgname.post-install
	"
_xppver="c1a0f59cf262f88eccb276c9bcd5bcee8c410971"
_i3ipcppver="cb008b30fc5f3febfe467884cb0211ee3c16386b"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/polybar/polybar/archive/$pkgver.tar.gz
	xpp-$_xppver.tar.gz::https://github.com/polybar/xpp/archive/$_xppver.tar.gz
	i3ipcpp-$_i3ipcppver.tar.gz::https://github.com/polybar/i3ipcpp/archive/$_i3ipcppver.tar.gz
	fix-version.patch
	"
options="!check" # No test suite

# temp allow textrels on riscv64
case $CARCH in
	riscv64) options="$options textrels";;
esac

prepare() {
	mkdir -p build
	rm -rf lib/xpp
	mv "$srcdir"/xpp-$_xppver lib/xpp
	rm -rf lib/i3ipcpp
	mv "$srcdir"/i3ipcpp-$_i3ipcppver lib/i3ipcpp
	default_prepare
}

build() {
	cd "$builddir"/build
	cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None ..
	cmake --build .
}

package() {
	cd "$builddir"/build
	cmake --build . --target install -- DESTDIR="$pkgdir"
}

sha512sums="
5022f7876489cc28805a52894c8ea42c2afc0600c84f6ce27f1a7c738fcc48fbf5f5d5537472378eae4f3d5ca36fc2fc8b069b379e35b1047d12a3b294e1857f  polybar-3.5.6.tar.gz
d83eaadb31f3cf044e446bc92ad8bf3c627554f012cf2f1b62eb9dab1ae8a0ab2f338e264377c157444c3f742a9ca45b9a4184a29f6b7eabaa0554067e957cd0  xpp-c1a0f59cf262f88eccb276c9bcd5bcee8c410971.tar.gz
27a90d80f2de45743c2347be5ec5c88db58c4f3bb2aa44093c2a1e3178bfd5761ec806bdec9c6b6a4de6d1e67d5f14d4518e99611bf7e2984cfc880898357133  i3ipcpp-cb008b30fc5f3febfe467884cb0211ee3c16386b.tar.gz
02186474284b1fc9c3054f7ea92645e20269d067326b035791bc6e50df2fc928fa287723ca249386bec557e36de2e71c9978c2bbf0cb8b2e3b5ecdcdf0e6fcd4  fix-version.patch
"