aboutsummaryrefslogtreecommitdiffstats
path: root/main/xcb-util-cursor/APKBUILD
blob: 18cf1319eb102ae3aa9f89300c9d5b208954084f (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
48
49
50
51
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xcb-util-cursor
pkgver=0.1.2
pkgrel=0
pkgdesc="Utility libraries for XC Binding - cursor"
url="http://xcb.freedesktop.org/"
arch="all"
license="MIT"
depends=
depends_dev="xcb-util-dev xcb-util-renderutil-dev xcb-util-image-dev"
makedepends="$depends_dev m4"
install=""
subpackages="$pkgname-dev"
source="http://xcb.freedesktop.org/dist/xcb-util-cursor-$pkgver.tar.gz
	"

_builddir="$srcdir"/xcb-util-cursor-$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"
	export CFLAGS="$CFLAGS -std=gnu99"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

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

md5sums="313ea0f29bf3b9a14fd26110daee761c  xcb-util-cursor-0.1.2.tar.gz"
sha256sums="b9e55161eb283ce14b5f73d09aba58c7ccadebc010984db659ae2d95d2ada02e  xcb-util-cursor-0.1.2.tar.gz"
sha512sums="e5ffae17af9253a63dafd170a34cc36dc554f34c4ce977130e18246548f93dfe5c862fa5f77e13c3f0d49caa8389f3c6ea8032b8820a868737696b0979988e48  xcb-util-cursor-0.1.2.tar.gz"