summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorRyp2015-06-09 15:46:26 +0100
committerRyp2015-06-09 15:46:26 +0100
commit8f8a3fc112db19ac772f600018d4c2c98ed00b1c (patch)
tree409190bd1f84634fa960cefdb45280a018665bfc /PKGBUILD
downloadaur-mogl-git.tar.gz
Initial port to AUR4
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..cac79f0f19a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Thibault 'Ryp' Schueller <ryp.sqrt@gmail.com>
+
+_gitname=moGL
+pkgname=mogl-git
+pkgver=0.1.4.r0.g7c181fd
+pkgrel=1
+pkgdesc="Modern OpenGL wrapper, thin C++14 header-only layer on top of the OpenGL 4.5+ API"
+arch=('i686' 'x86_64')
+url="https://github.com/Ryp/moGL"
+license=('MIT')
+makedepends=('git' 'cmake')
+conflicts=('mogl')
+provides=('mogl')
+source=('git+https://github.com/Ryp/moGL.git')
+sha512sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_gitname"
+ git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$srcdir/$_gitname"
+ mkdir -p build && pushd build
+ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
+ make
+}
+
+package() {
+ cd "$srcdir/$_gitname/build"
+ make install DESTDIR="$pkgdir"
+}