diff options
author | Nick Østergaard | 2019-03-01 22:43:17 +0100 |
---|---|---|
committer | Nick Østergaard | 2019-03-01 22:44:02 +0100 |
commit | d7de4eb70178ebfcbd9e4232c54105eadfbcb4a0 (patch) | |
tree | 76287e402d1914dfd6a6b383f2a66871b7f797a2 /PKGBUILD | |
download | aur-d7de4eb70178ebfcbd9e4232c54105eadfbcb4a0.tar.gz |
Add glm-git
This is mainly to address an issue with glm that kicad-git were having.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7a0e923172d6 --- /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 {} \; + +} |