[arch-commits] Commit in glbinding/repos (community-x86_64 community-x86_64/PKGBUILD)
Sven-Hendrik Haase
svenstaro at archlinux.org
Mon May 7 18:40:18 UTC 2018
Date: Monday, May 7, 2018 @ 18:40:17
Author: svenstaro
Revision: 319278
archrelease: copy trunk to community-x86_64
Added:
glbinding/repos/community-x86_64/
glbinding/repos/community-x86_64/PKGBUILD
(from rev 319277, glbinding/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: glbinding/repos/community-x86_64/PKGBUILD (from rev 319277, glbinding/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2018-05-07 18:40:17 UTC (rev 319278)
@@ -0,0 +1,49 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
+# Contributor: Xentec <xentec at aix0 dot eu>
+
+pkgname=glbinding
+pkgver=2.1.4
+pkgrel=1
+pkgdesc="A C++ binding for the OpenGL API, generated using the gl.xml specification"
+arch=('x86_64')
+url="http://www.glbinding.org"
+license=('MIT')
+depends=('libgl' 'glfw')
+makedepends=('cmake' 'mesa')
+checkdepends=('python')
+source=($pkgname-$pkgver.tar.gz::"https://github.com/cginternals/glbinding/archive/v$pkgver.tar.gz")
+sha256sums=('cb5971b086c0d217b2304d31368803fd2b8c12ee0d41c280d40d7c23588f8be2')
+
+prepare() {
+ cd $pkgname-$pkgver
+
+ rm -rf build
+ mkdir build
+}
+
+build() {
+ cd $pkgname-$pkgver/build
+
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DOPTION_BUILD_TESTS=ON
+ make
+}
+
+check() {
+ cd $pkgname-$pkgver/build
+
+ make test
+}
+
+package() {
+ cd $pkgname-$pkgver
+
+ make -C build DESTDIR="$pkgdir/" install
+
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ install -d "$pkgdir"/usr/share/doc/$pkgname
+ install -m644 README.md AUTHORS "$pkgdir"/usr/share/doc/$pkgname
+}
More information about the arch-commits
mailing list