summaryrefslogtreecommitdiff
path: root/user/libepoxy/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/libepoxy/APKBUILD')
-rw-r--r--user/libepoxy/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/user/libepoxy/APKBUILD b/user/libepoxy/APKBUILD
new file mode 100644
index 000000000..d8e9170fa
--- /dev/null
+++ b/user/libepoxy/APKBUILD
@@ -0,0 +1,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"