Subject: [PATCH] testing/gli: new aport

From: Drew DeVault <[email-masked]>
Date: Sat, 3 Aug 2019 18:20:34 -0400

---
 testing/gli/APKBUILD | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 testing/gli/APKBUILD

diff --git a/testing/gli/APKBUILD b/testing/gli/APKBUILD
new file mode 100644
index 0000000000..6b9a75cbd8
--- /dev/null
+++ b/testing/gli/APKBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Drew DeVault <[email-masked]>
+pkgname=gli
+pkgver=0.8.2.0
+pkgrel=0
+pkgdesc="OpenGL Image library for C++"
+url="http://gli.g-truc.net/"
+arch="noarch"
+license="MIT"
+makedepends="cmake"
+subpackages="$pkgname-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/g-truc/$pkgname/archive/$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
+options="!check" # https://github.com/g-truc/gli/issues/169
+
+build() {
+	if [ "$CBUILD" != "$CHOST" ]; then
+		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+	fi
+
+	cmake \
+		-DCMAKE_INSTALL_PREFIX=/usr \
+		-DCMAKE_INSTALL_LIBDIR=lib \
+		-DCMAKE_BUILD_TYPE=Release \
+		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+		-DCMAKE_C_FLAGS="$CFLAGS" \
+		${CMAKE_CROSSOPTS} .
+	make
+}
+
+check() {
+	ctest
+}
+
+package() {
+	make DESTDIR="$pkgdir" install
+}
+
+sha512sums="c254a4e1497d0add985e4a882c552db99c512cc0e9cc72145d51a6e7deada817d624d9818099a47136a8a3ef1223a26a34e355e3c713166f0bb062e506059834  gli-0.8.2.0.tar.gz"
-- 
2.22.0