APKBUILD 937 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 11 12 13 14
license="custom"
subpackages="$pkgname-dev $pkgname-doc"
depends=
makedepends="pkgconfig libxfixes-dev libxext-dev compositeproto"
source="http://xorg.freedesktop.org//releases/individual/lib/libXcomposite-$pkgver.tar.bz2"

depends_dev="xproto compositeproto libxfixes-dev libx11-dev libxext-dev"
15 16 17
_builddir="$srcdir"/libXcomposite-$pkgver
build() {
	cd "$_builddir"
18 19 20 21 22 23
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		|| return 1
Natanael Copa's avatar
Natanael Copa committed
24
	make || return 1
25 26 27 28
}

package() {
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
29
	make DESTDIR="$pkgdir" install || return 1
30
	rm "$pkgdir"/usr/lib/*.la || return 1
Natanael Copa's avatar
Natanael Copa committed
31 32 33
	install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

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