summaryrefslogtreecommitdiff
path: root/user/libepoxy/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-09 23:29:40 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-09 23:29:40 -0500
commit8eae39cb4d71fc79e88307a1bbf9fa4564908203 (patch)
treef1710649e87762296a0437caa11e3069fef5f7b7 /user/libepoxy/APKBUILD
parentf56ca62ecb95bcabcae90f5e226efc4b945b0bbb (diff)
downloadpackages-8eae39cb4d71fc79e88307a1bbf9fa4564908203.tar.gz
packages-8eae39cb4d71fc79e88307a1bbf9fa4564908203.tar.bz2
packages-8eae39cb4d71fc79e88307a1bbf9fa4564908203.tar.xz
packages-8eae39cb4d71fc79e88307a1bbf9fa4564908203.zip
user/libepoxy: pull in, take, bump, fix, use meson
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"