aboutsummaryrefslogtreecommitdiffstats
path: root/main/libxcomposite/APKBUILD
blob: 64d5575b4e7565829e11857a37c6b1b6068c0a19 (plain) (blame)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxcomposite
pkgver=0.4.4
pkgrel=2
pkgdesc="X11 Composite extension library"
url="http://xorg.freedesktop.org/"
arch="all"
license="custom"
options="!check"  # No test suite.
subpackages="$pkgname-dev $pkgname-doc"
depends=
depends_dev="libxext-dev"
makedepends="xorgproto libx11-dev libxext-dev libxfixes-dev util-macros"
source="https://www.x.org/releases/individual/lib/libXcomposite-$pkgver.tar.bz2"

builddir="$srcdir"/libXcomposite-$pkgver

prepare() {
	cd "$builddir"
	chmod u+w config.sub
	update_config_sub
	default_prepare
}

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

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

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