APKBUILD 1001 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxcomposite
3 4
pkgver=0.4.4
pkgrel=0
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 9 10
license="custom"
subpackages="$pkgname-dev $pkgname-doc"
depends=
11
depends_dev="xproto compositeproto libxfixes-dev libx11-dev libxext-dev"
Natanael Copa's avatar
Natanael Copa committed
12 13 14
makedepends="pkgconfig libxfixes-dev libxext-dev compositeproto"
source="http://xorg.freedesktop.org//releases/individual/lib/libXcomposite-$pkgver.tar.bz2"

15
_builddir="$srcdir"/libXcomposite-$pkgver
16 17 18 19 20 21

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

22 23
build() {
	cd "$_builddir"
24 25 26 27 28 29
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		|| return 1
Natanael Copa's avatar
Natanael Copa committed
30
	make || return 1
31 32 33 34
}

package() {
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
35
	make DESTDIR="$pkgdir" install || return 1
36
	rm "$pkgdir"/usr/lib/*.la || return 1
Natanael Copa's avatar
Natanael Copa committed
37 38 39
	install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

40
md5sums="f7a218dcbf6f0848599c6c36fc65c51a  libXcomposite-0.4.4.tar.bz2"