aboutsummaryrefslogtreecommitdiffstats
path: root/main/libepoxy/APKBUILD
blob: 1e498e0d996d5f9c1474adcfdd70dba8723a1c61 (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
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libepoxy
pkgver=1.4.3
pkgrel=1
pkgdesc="Direct Rendering Manager runtime library"
url="https://github.com/anholt/libepoxy"
arch="all"
license="MIT"
options="!check"  # Requires dlvsym
depends=""
depends_dev="libx11-dev mesa-dev"
makedepends="$depends_dev autoconf automake libtool util-macros python3"
install=""
subpackages="$pkgname-dev"
source="https://github.com/anholt/libepoxy/releases/download/$pkgver/libepoxy-$pkgver.tar.xz"

prepare() {
	cd "$builddir"
	default_prepare
	autoreconf -vif
}

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

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

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

sha512sums="f5d9fc74b062a0a90aea3abd7621ee4e2e27db359b82cacfbc8df64bceb4b7e4910755a078b46793b25e89d2e87ecb75556313dbad986aa4346f763dd43d2749  libepoxy-1.4.3.tar.xz"