aboutsummaryrefslogtreecommitdiffstats
path: root/main/libepoxy/APKBUILD
blob: ad97467b57d461d52d829a277abd04fe616784d8 (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
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libepoxy
pkgver=1.3.1
pkgrel=1
pkgdesc="Direct Rendering Manager runtime library"
url="http://github.com/anholt/libepoxy"
arch="all"
license="MIT"
depends=""
depends_dev="libx11-dev mesa-dev"
makedepends="$depends_dev autoconf automake libtool util-macros python2"
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
}

md5sums="981396e099bc91c29e6769e49a0cb8d6  libepoxy-1.3.1.tar.gz"
sha256sums="6700ddedffb827b42c72cce1e0be6fba67b678b19bf256e1b5efd3ea38cc2bb4  libepoxy-1.3.1.tar.gz"
sha512sums="7d83f01bbc6d2387e4e2ec8a94b05d6e7aa6d0513821a794d60544381a18874fa75ec1dfd2585824076708e2848ff8d5dc20e184af65a7cb602e7dfd010aaf53  libepoxy-1.3.1.tar.gz"