blob: 15669f142a6803451a570cf21931e57d8e3b1827 (
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
|
# Author: mosra <mosra@centrum.cz>
pkgname=magnum-examples-git
pkgver=snapshot.2015.05.r126.g3d70af7
pkgrel=1
pkgdesc="Examples for Magnum OpenGL graphics engine (Git version)"
arch=('i686' 'x86_64')
url="http://mosra.cz/blog/magnum.php"
license=('MIT')
depends=('magnum-git' 'magnum-plugins-git' 'magnum-integration-git' 'bullet' 'openal')
makedepends=('cmake' 'git')
provides=('magnum-examples')
conflicts=('magnum-examples')
source=("git+git://github.com/mosra/magnum-examples.git")
sha1sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}
build() {
mkdir -p "$srcdir/build"
cd "$srcdir/build"
cmake "$srcdir/${pkgname%-git}" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DWITH_AUDIO_EXAMPLE=ON \
-DWITH_BULLET_EXAMPLE=ON \
-DWITH_CUBEMAP_EXAMPLE=ON \
-DWITH_MOTIONBLUR_EXAMPLE=ON \
-DWITH_PRIMITIVES_EXAMPLE=ON \
-DWITH_PICKING_EXAMPLE=ON \
-DWITH_TEXT_EXAMPLE=ON \
-DWITH_TEXTUREDTRIANGLE_EXAMPLE=ON \
-DWITH_TRIANGLE_EXAMPLE=ON \
-DWITH_VIEWER_EXAMPLE=ON
make
}
package() {
cd "$srcdir/build"
make DESTDIR="$pkgdir/" install
}
|