APKBUILD 1.03 KB
Newer Older
1
# Contributor: Valery Kartel <valery.kartel@gmail.com>
2 3
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libepoxy
4 5
pkgver=1.5.3
pkgrel=0
6
pkgdesc="Direct Rendering Manager runtime library"
7
url="https://github.com/anholt/libepoxy"
8 9
arch="all"
license="MIT"
10
options="!check"  # Requires dlvsym
11
depends=""
12
depends_dev="libx11-dev mesa-dev"
13
makedepends="$depends_dev autoconf automake libtool util-macros python3"
14 15
install=""
subpackages="$pkgname-dev"
16
source="https://github.com/anholt/libepoxy/releases/download/$pkgver/libepoxy-$pkgver.tar.xz"
17 18

prepare() {
19
	cd "$builddir"
20
	default_prepare
21
	autoreconf -vif
22 23 24
}

build() {
25
	cd "$builddir"
26 27 28 29 30 31
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--disable-static \
32 33 34 35 36 37 38
		--enable-shared
	make
}

check() {
	cd "$builddir"
	make check
39 40 41
}

package() {
42
	cd "$builddir"
43
	make install DESTDIR="$pkgdir"
44 45
}

46
sha512sums="746dfe2a0a91319abd3906c75f81f6b895117f39120e0d8897db1daec1b6d2e91e1318f0dfe588c81907727b0a6dd1a7e4a819ee6b3063a23875312570464720  libepoxy-1.5.3.tar.xz"