summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD32
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1c81329b024
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = mogl-git
+ pkgdesc = Modern OpenGL wrapper, thin C++14 header-only layer on top of the OpenGL 4.5+ API
+ pkgver = 0.1.4.r0.g7c181fd
+ pkgrel = 1
+ url = https://github.com/Ryp/moGL
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ makedepends = cmake
+ provides = mogl
+ conflicts = mogl
+ source = git+https://github.com/Ryp/moGL.git
+ sha512sums = SKIP
+
+pkgname = mogl-git
+
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"
+}