blob: 25f46cd645917ffb7868e82371030998053f4965 (
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: Angelo Theodorou <encelo at gmail dot com>
pkgname=ncine-git
pkgver=r449.d80f0e6
pkgrel=1
pkgdesc="A cross-platform 2D game engine"
arch=('i686' 'x86_64')
url="http://ncine.github.io"
license=('MIT')
depends=('glfw' 'openal' 'libvorbis' 'libwebp' 'lua' 'hicolor-icon-theme')
makedepends=('git' 'cmake')
conflicts=('ncine')
provides=('ncine')
options=(!strip)
source=(
'git+https://github.com/nCine/nCine'
'git+https://github.com/nCine/nCine-data'
)
md5sums=(
'SKIP'
'SKIP'
)
pkgver() {
cd "$srcdir/nCine"
( set -o pipefail
git describe --tags --long --exact-match 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
mkdir -p build && cd build
cmake ../nCine\
-DNCINE_WITH_GLEW=OFF\
-DCMAKE_BUILD_TYPE=Release\
-DNCINE_BUILD_TESTS=ON\
-DNCINE_INSTALL_DEV_SUPPORT=ON\
-DNCINE_LINKTIME_OPTIMIZATION=ON\
-DNCINE_AUTOVECTORIZATION_REPORT=OFF\
-DNCINE_DYNAMIC_LIBRARY=ON\
-DNCINE_BUILD_DOCUMENTATION=OFF\
-DNCINE_IMPLEMENTATION_DOCUMENTATION=OFF\
-DNCINE_EMBED_SHADERS=ON\
-DNCINE_STARTUP_TEST=apptest_camera\
-DNCINE_BUILD_ANDROID=OFF\
-DNCINE_STRIP_BINARIES=ON\
-DNCINE_ADDRESS_SANITIZER=OFF\
-DNCINE_GCC_HARDENING=ON\
-DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
make -C build DESTDIR=$pkgdir PREFIX= install
install -Dm0644 $srcdir/nCine/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
|