summaryrefslogtreecommitdiffstats
path: root/main/xcb-util/APKBUILD
blob: bf53da7a203fe62dd220c7f83a9b534dcd22022d (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xcb-util
pkgver=0.3.9
pkgrel=0
pkgdesc="Utility libraries for XC Binding"
url="http://xcb.freedesktop.org"
arch="all"
license="GPL"
subpackages="$pkgname-dev"
depends=
depends_dev="libxcb-dev"
makedepends="m4 $depends_dev gperf pkgconfig"
source="http://xcb.freedesktop.org/dist/$pkgname-$pkgver.tar.bz2"

_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
}
md5sums="01dcc7a16d5020530552712710646ea2  xcb-util-0.3.9.tar.bz2"