APKBUILD 1.02 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxcomposite
3
pkgver=0.4.4
4
pkgrel=1
Natanael Copa's avatar
Natanael Copa committed
5 6
pkgdesc="X11 Composite extension library"
url="http://xorg.freedesktop.org/"
7
arch="all"
Natanael Copa's avatar
Natanael Copa committed
8
license="custom"
9
options="!check"  # No test suite.
Natanael Copa's avatar
Natanael Copa committed
10 11
subpackages="$pkgname-dev $pkgname-doc"
depends=
12 13
depends_dev="libxext-dev"
makedepends="libx11-dev libxext-dev libxfixes-dev compositeproto util-macros xproto"
14
source="http://www.x.org/releases/individual/lib/libXcomposite-$pkgver.tar.bz2"
Natanael Copa's avatar
Natanael Copa committed
15

16
builddir="$srcdir"/libXcomposite-$pkgver
17 18

prepare() {
19
	cd "$builddir"
20
	chmod u+w config.sub
21 22
	update_config_sub
	default_prepare
23 24
}

25
build() {
26
	cd "$builddir"
27 28 29 30
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
31 32
		--sysconfdir=/etc
	make
33 34 35
}

package() {
36 37
	cd "$builddir"
	make DESTDIR="$pkgdir" install
Natanael Copa's avatar
Natanael Copa committed
38 39 40
	install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

41
sha512sums="b15f8fdbe4cb7488bdad161d73ef8e59ef603c5af92d7b573110ba136d7d4ce3749aac45972bce87662b0310b67e831cffad72c45c15bfff988b5b555d4c884b  libXcomposite-0.4.4.tar.bz2"