summaryrefslogtreecommitdiffstats
path: root/testing/i3wm/APKBUILD
blob: f18753b2926fb3450a34f40a825d9ed0359d0370 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=i3wm
pkgver=4.8
pkgrel=1
pkgdesc="A tiling window manager"
url="http://i3wm.org"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends="$depends_dev bison flex libxcb-dev xcb-util-cursor-dev
	xcb-util-keysyms-dev xcb-util-wm-dev libev-dev pango-dev cairo-dev
	yajl-dev startup-notification-dev pcre-dev"
install=""
subpackages="$pkgname-doc"
source="http://i3wm.org/downloads/i3-${pkgver}.tar.bz2 musl.patch"

_builddir="$srcdir/i3-$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
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir/" install || return 1

	install -d "$pkgdir/usr/share/man/man1"
	install -m644 man/*.1 "$pkgdir"/usr/share/man/man1/ || return 1
}

md5sums="4151e8e81fdc78b32a7cb953f67e3bef  i3-4.8.tar.bz2
f4baffffe55d83deb61bfe880c248794  musl.patch"
sha256sums="502c34290f239780bb40352191f0500e8f35d2446eddb573c67c27873d6a1b6b  i3-4.8.tar.bz2
bcbecf73b63715b88264e5a1628a1267ce996431b57a3fc2db336b42e08626b9  musl.patch"
sha512sums="fd6f92da857246119f1ae710b6c5168128fa2da5eae8308550b1b9c75879f060cac8246897333f3d67e18de36828a11dd12b4ccee9bd6cd6ad32e2b44c50b43e  i3-4.8.tar.bz2
860b2c3d3977652e81781bf30319b22dd9f3285ed2ca9474d2dd23e4787d9e19954ca7de6f320f1c6c326ee776cbf475d5aa6d861c49e59af6a831f601ba17a9  musl.patch"