aboutsummaryrefslogtreecommitdiffstats
path: root/main/libepoxy/APKBUILD
blob: 7ef8ef190db3e0dc4d0307a7902fef8721362ecc (plain)
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
46
47
48
49
50
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libepoxy
pkgver=1.2
pkgrel=0
pkgdesc="Direct Rendering Manager runtime library"
url="http://github.com/anholt/libepoxy"
arch="all"
license="MIT"
depends=""
depends_dev="libx11-dev"
makedepends="$depends_dev autoconf automake libtool util-macros mesa-dev
	python"
install=""
subpackages="$pkgname-dev"
source="libepoxy-$pkgver.tar.gz::https://codeload.github.com/anholt/libepoxy/tar.gz/v$pkgver"

_builddir="$srcdir"/libepoxy-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	./autogen.sh
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--disable-static \
		--enable-shared \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make install DESTDIR="$pkgdir" || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
}

md5sums="12d6b7621f086c0c928887c27d90bc30  libepoxy-1.2.tar.gz"
sha256sums="42c328440f60a5795835c5ec4bdfc1329e75bba16b6e22b3a87ed17e9679e8f6  libepoxy-1.2.tar.gz"
sha512sums="1104fc7e6cbb4bb95e422e7801491067806df6849690be4068b5eec33a5fc84672a5bb4666357e9a46d2fae436f83b37402b6cc0c4ee69627e48d48a4d32a2ed  libepoxy-1.2.tar.gz"