summaryrefslogtreecommitdiffstats
path: root/testing/i3wm/APKBUILD
blob: 7bb0137b04830ad06368a4062e17eb390ae434a2 (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.10
pkgrel=0
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 libxkbcommon-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="fabde69451ace6169692d524e41bf6c0  i3-4.10.tar.bz2
f4baffffe55d83deb61bfe880c248794  musl.patch"
sha256sums="2f60982dd1be2cf4b469eadb3a25be2b63b889d3c50ad3f66b31713a23d802ce  i3-4.10.tar.bz2
bcbecf73b63715b88264e5a1628a1267ce996431b57a3fc2db336b42e08626b9  musl.patch"
sha512sums="8a39a5041ea864f4e6ff1d43faad8b449450e4d6a199846590438f3121271c4d6dcf349f59696272c64feecf9e5286697ea9228c70c282a8e926ba4563c7f103  i3-4.10.tar.bz2
860b2c3d3977652e81781bf30319b22dd9f3285ed2ca9474d2dd23e4787d9e19954ca7de6f320f1c6c326ee776cbf475d5aa6d861c49e59af6a831f601ba17a9  musl.patch"