aboutsummaryrefslogtreecommitdiffstats
path: root/main/xcb-proto/APKBUILD
blob: 48f8e2a000a1b43d03b093ff18882dba63b349ed (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xcb-proto
pkgver=1.12
pkgrel=1
pkgdesc="XML-XCB protocol descriptions"
url="http://xcb.freedesktop.org/"
arch="noarch"
license="custom"
depends=
makedepends="python3"
# no testsuite
options="!check"
source="http://xcb.freedesktop.org/dist/$pkgname-$pkgver.tar.bz2
	python3.patch"

builddir="${srcdir}/${pkgname}-${pkgver}"

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

package() {
	cd "$builddir"
	make DESTDIR=${pkgdir} install || return 1
	install -m755 -d ${pkgdir}/usr/share/licenses/${pkgname}
	install -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1
}
sha512sums="1f427eaf223971b25b56c9f641350e03f5ebeb17a1fc212ce2a0c892de7aba7e53d5e3958b073a122bb344c387c0ff394cf96f542ff046f33de4e1cd27fb9e5c  xcb-proto-1.12.tar.bz2
291fb6410c656e3744ba51054cb51d25c10eb738223d65367b43dca7bfa8b82440e9c0836f615fcee64040e79087d68d25c2d329348623b936abb520a9135bfd  python3.patch"