summaryrefslogtreecommitdiff
path: root/user/libepoxy/APKBUILD
blob: d8e9170fa3b8dbeab492d8bb08e6e5452394a36b (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
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libepoxy
pkgver=1.5.2
pkgrel=0
pkgdesc="Direct Rendering Manager runtime library"
url="https://github.com/anholt/libepoxy"
arch="all"
options="!check"  # Requires X11 and appropriate mesa-dri-* package
license="MIT"
depends=""
depends_dev="libx11-dev mesa-dev"
makedepends="$depends_dev meson ninja"
install=""
subpackages="$pkgname-dev"
source="https://github.com/anholt/libepoxy/releases/download/$pkgver/libepoxy-$pkgver.tar.xz"

prepare() {
	cd "$builddir"
	default_prepare
	mkdir _build
}

build() {
	cd "$builddir"/_build
	meson -Dprefix=/usr
	ninja
}

check() {
	cd "$builddir"/_build
	ninja test
}

package() {
	cd "$builddir"/_build
	DESTDIR="$pkgdir" ninja install
}

sha512sums="74eac05280d8877995d07cb28d0c3ef285ad57c0c9a3369c59fc3601f2281f92dc103e78cf5538aca853e2a64d145d967c43f3176274fd046fb27aa86827a521  libepoxy-1.5.2.tar.xz"