blob: 8c8f9233a555ec12a5d196909d9773b63d7eb7a1 (
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
|
# Maintainer: Angelo Theodorou <encelo@gmail.com>
pkgname=ncine
pkgver=2020.05
pkgrel=1
pkgdesc="A multi-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' 'doxygen')
options=(!strip)
source=(https://github.com/nCine/nCine/archive/$pkgver.tar.gz)
md5sums=('f20906dfe9a0cf6558b1ef9621d6c9df')
prepare() {
git clone https://github.com/nCine/nCine-data || git -C nCine-data pull
}
build() {
mkdir -p build && cd build
cmake ../nCine-$pkgver\
-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=ON\
-DNCINE_IMPLEMENTATION_DOCUMENTATION=OFF\
-DNCINE_EMBED_SHADERS=ON\
-DNCINE_STARTUP_TEST=apptest_camera\
-DNCINE_BUILD_ANDROID=OFF\
-DNCINE_STRIP_BINARIES=ON\
-DNCINE_TESTS_DATA_DIR=/usr/share/ncine/data\
-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-$pkgver/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
|