aboutsummaryrefslogtreecommitdiffstats
path: root/main/libxcb/APKBUILD
blob: e3aff2eeccd05a2a1995e4c64f43e6d74367c814 (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=libxcb
pkgver=1.11
pkgrel=0
pkgdesc="X11 client-side library"
url="http://xcb.freedesktop.org/"
arch="all"
license="custom"
depends=
subpackages="$pkgname-dev $pkgname-doc"
depends_dev="libpthread-stubs libxau-dev libxdmcp-dev xcb-proto"
makedepends="$depends_dev libxslt python"
source="http://xcb.freedesktop.org/dist/$pkgname-$pkgver.tar.bz2
	"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	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"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-xkb \
		--enable-xinput \
		--disable-xprint \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
md5sums="5a873ebd383d1a60612dd6ec6b42c781  libxcb-1.11.tar.bz2"
sha256sums="03635d70045b9ede90778e67516135828a57de87ac508f987024f43c03620ff7  libxcb-1.11.tar.bz2"
sha512sums="718f9a44a621daae93eb94dc7b795743253c801ea98efd2041794823fdc8f5eeb031b1fa7d34b72e7a8fccf850d98f2373a49927c8d3198c1d4850af6ae14bb1  libxcb-1.11.tar.bz2"