summaryrefslogtreecommitdiff
path: root/user/glm/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2018-08-19 03:38:17 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2018-08-19 03:38:17 +0000
commitcb6f083b369ee59de217c0504d471124d533325d (patch)
tree28e404754d754f3a852831d2b649010f70695e01 /user/glm/APKBUILD
parent7ef2ed32d3d4442463f39d31380cff9432608231 (diff)
parentc5975fc819d7b79180a3627a87974da9d18685e3 (diff)
downloadpackages-cb6f083b369ee59de217c0504d471124d533325d.tar.gz
packages-cb6f083b369ee59de217c0504d471124d533325d.tar.bz2
packages-cb6f083b369ee59de217c0504d471124d533325d.tar.xz
packages-cb6f083b369ee59de217c0504d471124d533325d.zip
Merge branch 'libreoffice' into 'master'
LibreOffice and dependencies I have made a deal with Satan. See merge request !44
Diffstat (limited to 'user/glm/APKBUILD')
-rw-r--r--user/glm/APKBUILD38
1 files changed, 38 insertions, 0 deletions
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 <ncopa@alpinelinux.org>
+# Maintainer: Max Rees <maxcrees@me.com>
+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"