From 8c4f2125f1ad021fb57748542f5c3e659368d884 Mon Sep 17 00:00:00 2001 From: Max Rees Date: Wed, 8 Aug 2018 14:34:48 -0400 Subject: user/glm: pull in --- user/glm/APKBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 user/glm/APKBUILD (limited to 'user/glm/APKBUILD') diff --git a/user/glm/APKBUILD b/user/glm/APKBUILD new file mode 100644 index 000000000..f2a984794 --- /dev/null +++ b/user/glm/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: Natanael Copa +# Maintainer: Max Rees +pkgname=glm +pkgver=0.9.9.0 +pkgrel=0 +pkgdesc="C++ header-only mathematics library for graphics programming" +url="https://glm.g-truc.net/" +arch="noarch" +license="MIT OR Custom:Happy-Bunny" +makedepends="cmake" +source="https://github.com/g-truc/glm/releases/download/$pkgver/$pkgname-$pkgver.zip" +builddir="$srcdir/$pkgname" +replaces="glm-dev" + +build() { + cd "$builddir" + mkdir build + cd build + + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DGLM_TEST_ENABLE=bool:ON + make +} + +check() { + cd "$builddir"/build + make test +} + +package() { + cd "$builddir"/build + make install DESTDIR="$pkgdir" +} + +sha512sums="ac256e8ba515a0a57e27cb9dc79325af7a6f014341c11ba34af604fc2df03ada6979c39c0e5a3fd7526a5dc6dd4af99586e60cefe13bb134ad4df2212193a253 glm-0.9.9.0.zip" -- cgit v1.2.3-70-g09d2