summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Østergaard2019-03-01 22:43:17 +0100
committerNick Østergaard2019-03-01 22:44:02 +0100
commitd7de4eb70178ebfcbd9e4232c54105eadfbcb4a0 (patch)
tree76287e402d1914dfd6a6b383f2a66871b7f797a2
downloadaur-d7de4eb70178ebfcbd9e4232c54105eadfbcb4a0.tar.gz
Add glm-git
This is mainly to address an issue with glm that kicad-git were having.
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD38
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..609b817c78a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+# Generated by mksrcinfo v8
+# Fri Mar 1 21:43:54 UTC 2019
+pkgbase = glm-git
+ pkgdesc = C++ mathematics library for 3D software based on the OpenGL Shading Language (GLSL) specification
+ pkgver = r1920.477e803f
+ pkgrel = 1
+ url = http://glm.g-truc.net
+ arch = any
+ license = MIT
+ makedepends = cmake
+ provides = glm
+ conflicts = glm
+ source = git+https://github.com/g-truc/glm.git
+ sha512sums = SKIP
+
+pkgname = glm-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7a0e923172d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: Peter Hatina <phatina AT gmail.com>
+pkgname=glm-git
+pkgver=r1920.477e803f
+pkgrel=1
+pkgdesc="C++ mathematics library for 3D software based on the OpenGL Shading Language (GLSL) specification"
+arch=('any')
+license=('MIT')
+url="http://glm.g-truc.net"
+makedepends=('cmake')
+conflicts=('glm')
+provides=('glm')
+source=("git+https://github.com/g-truc/glm.git")
+sha512sums=('SKIP')
+pkgver() {
+ cd "${srcdir}/glm"
+ printf "r%s.%s" "$(git rev-list HEAD --count --first-parent)" "$(git rev-parse --short HEAD)"
+}
+package() {
+ cd "${srcdir}/glm"
+
+ mkdir -p build
+ cd build
+
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib
+ make DESTDIR=$pkgdir install
+
+ cd ..
+
+ mkdir -p $pkgdir/usr/share/doc
+ cp -r doc $pkgdir/usr/share/doc/glm
+
+ find $pkgdir -type f -exec chmod 644 {} \;
+ find $pkgdir -type d -exec chmod 755 {} \;
+
+}