aboutsummaryrefslogtreecommitdiffstats
path: root/testing/i3status/APKBUILD
blob: a889f5244c23e3a080afa3392e1dfdd332131ec8 (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
44
45
46
47
# Contributor: k0r10n <k0r10n.dev@gmail.com>
# Maintainer:
pkgname=i3status
pkgver=2.9
pkgrel=1
pkgdesc="Generates status bar to use with i3bar, dzen2 or xmobar"
url="http://i3.zekjur.net/i3status/"
arch="all"
license="BSD"
depends=""
depends_dev="wireless-tools-dev alsa-lib-dev confuse-dev yajl-dev"
makedepends="$depends_dev asciidoc linux-headers"
install=""
subpackages="$pkgname-doc"
source="http://i3wm.org/i3status/${pkgname}-${pkgver}.tar.bz2
	musl-fix.patch
	"

_builddir="$srcdir"/${pkgname}-${pkgver}
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir/" install || return 1
	install -Dm644 LICENSE \
		"${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE || return 1
}

md5sums="f02a61ade525fd9e9b092f778632a8b0  i3status-2.9.tar.bz2
75f4468573a132ae9fb255fb9a5531a7  musl-fix.patch"
sha256sums="42eb09500c625fcac9a7125a29e7bf532ca4b8540942418ee3253aa15e5e9de3  i3status-2.9.tar.bz2
e976f20fb165d2f96e7a49a95a2d5c803d882883dd4a87bfe20e62f85bf5fb4d  musl-fix.patch"
sha512sums="67d026fcb4cc2a8af39cc268c962d49c4d3f2473bad92d99fa7fba876235ac83471663b318f890e9d7d3e9e06897286d693d352e686376a3a4876f253f309cb6  i3status-2.9.tar.bz2
340c44f68b2f74c2f66314f515f6843a6ac609a4d203ceb152b662aa8822ed405ccbbe459ea2eb1b42891cea84e3b63d1ff3bfe478d7fa2fc6c8b51f39f12a00  musl-fix.patch"