blob: 68d348b7bb09c5972721b29c7f66ad51603970e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Maintainer: Xentec <xentec at aix0 dot eu>
_name=glbinding
pkgname=${_name}-git
pkgver=2.1.3.r105.gc9909596
pkgrel=1
pkgdesc="A generated C++ binding for the OpenGL API, generated using the gl.xml specification"
arch=('i686' 'x86_64')
url="http://www.glbinding.org/"
license=('MIT')
depends=('glfw' 'libgl' 'mesa')
makedepends=('cmake' 'git')
checkdepends=('gmock')
conflicts=('glbinding')
source=("$pkgname"::'git+https://github.com/cginternals/glbinding.git')
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g;s/^v//'
}
build() {
mkdir -p build && cd build
cmake -Wno-dev \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DOPTION_BUILD_TESTS=0 \
"../$pkgname"
make
}
check() {
cd build
cmake -Wno-dev \
-DOPTION_BUILD_TESTS=1 \
"../$pkgname"
make
make test
}
package() {
export DESTDIR="$pkgdir"
make -C build install
install -D -m644 "$pkgname"/LICENSE "${pkgdir}/usr/share/licenses/${_name}/LICENSE"
# conflict with mesa-demos
mv -v "${pkgdir}/usr/bin/glinfo" "${pkgdir}/usr/bin/glinfo-glb"
rm -vr "${pkgdir}/usr/include/KHR"
}
|