aboutsummaryrefslogtreecommitdiffstats
path: root/testing/polybar/APKBUILD
blob: 40f6d78ac5c41584aa4d8e5378f53e461a3ba98a (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
78
79
80
81
82
83
84
85
86
87
88
# Contributor: Taner Tas <taner76@gmail.com>
# Maintainer: Taner Tas <taner76@gmail.com>
pkgname=polybar
pkgver=3.4.2
pkgrel=0
pkgdesc="A 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:bashcomp:noarch
	$pkgname-zsh-completion:zshcomp:noarch
	"
install="
	$pkgname.post-install
	"
_xppver="c5036690ada6695e187722e66f66eb1178d076ba"
_i3ipcppver="0.7.1"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/jaagr/polybar/archive/$pkgver.tar.gz
	xpp-$_xppver.tar.gz::https://github.com/jaagr/xpp/archive/$_xppver.tar.gz
	https://github.com/jaagr/i3ipcpp/archive/v$_i3ipcppver.tar.gz
	fix-wstringop-truncation.patch
	"
options="!check" # No test suite

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=Release ..
	cmake --build .
}

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

bashcomp() {
	pkgdesc="Bash completion for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel bash-completion"

	mkdir -p "$subpkgdir"/usr/share/
	mv "$pkgdir"/usr/share/bash-completion \
		"$subpkgdir"/usr/share/
}

zshcomp() {
	pkgdesc="Zsh completion for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel zsh"

	mkdir -p "$subpkgdir"/usr/share/
	mv "$pkgdir"/usr/share/zsh \
		"$subpkgdir"/usr/share/
}

sha512sums="2205847ebc03040e8d2a2581d2c70e940157c5dba71e0c2d086c0f0971a6ffd83c42846a85dd93165512f35710e3f3af8b4494bcd695f71ef0ac501f74753dfd  polybar-3.4.2.tar.gz
f4d25a911cc7219ebf35b4b7f63d180a4151f30c8147b38aa1adb2af7ce99b3a4641bbd690f6ccf841d855792715fcae50580b402a910ebc6559cacda733e2b2  xpp-c5036690ada6695e187722e66f66eb1178d076ba.tar.gz
ef9f591bb4436916ad038bcb0c15ea3415d1978ff264fb276108ddac89c98515c464fbf252429f6a76589cb78e1434adba2efefb5a844dadad0e261f3806fb72  v0.7.1.tar.gz
5313c9a20b3f56d878dde0b053c8ca689bbbec077b7c7ba47549dac96393de809e14313e76f68b975f334876a472b14a4d82166c10a64623e753007b26e686ca  fix-wstringop-truncation.patch"