aboutsummaryrefslogtreecommitdiffstats
path: root/main/pixman/APKBUILD
blob: 0fe2707c8c2ea359d0ce1ef330a34bb286984cea (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
42
43
44
45
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pixman
pkgver=0.38.4
pkgrel=0
pkgdesc="Low-level pixel manipulation library"
url="http://xorg.freedesktop.org"
arch="all"
license="MIT"
subpackages="$pkgname-static $pkgname-dev $pkgname-dbg"
makedepends="perl linux-headers"
source="https://www.x.org/releases/individual/lib/$pkgname-$pkgver.tar.bz2
	stacksize-reduction.patch
	"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-static \
		--disable-openmp \
		--disable-arm-iwmmxt
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

static() {
	pkgdesc="Static libraries for pixman"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib/
}

sha512sums="0683b7f67caa0881b23188b7e6f8487c7e0a1257a912686616b7d862efd5a9efdb51641c81ec54905a6f6b1029d796ca4e25c0909db28fc29fa3617bf09f9cf9  pixman-0.38.4.tar.bz2
3d75e7328e6eaaa6e8f4defa4402db815764369f94b81be38fba07933267fe24b03b591dd4c3f3544cb090650153728bfbdd81a91acaf19524c3d08f61427f63  stacksize-reduction.patch"