diff options
author | Angelo Theodorou | 2019-06-02 20:45:39 +0200 |
---|---|---|
committer | Angelo Theodorou | 2019-06-02 20:45:39 +0200 |
commit | 54a3aed9595672fbd1e35953f83fd60ae39f9800 (patch) | |
tree | e89104741094f9aa9870a686f5c701e0e45ab4c7 | |
download | aur-54a3aed9595672fbd1e35953f83fd60ae39f9800.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 26 | ||||
-rw-r--r-- | PKGBUILD | 57 |
2 files changed, 83 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c9f858fe8c62 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,26 @@ +pkgbase = ncine-git + pkgdesc = A multi-platform 2D game engine + pkgver = r247.a772675 + pkgrel = 1 + url = http://ncine.github.io + arch = i686 + arch = x86_64 + license = MIT + makedepends = git + makedepends = cmake + makedepends = doxygen + depends = glfw + depends = openal + depends = libvorbis + depends = libwebp + depends = hicolor-icon-theme + optdepends = glew + optdepends = lua + provides = ncine + conflicts = ncine + options = !strip + source = git://github.com/nCine/nCine + md5sums = SKIP + +pkgname = ncine-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..bec3a11cfc85 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,57 @@ +# Contributor: Angelo Theodorou <encelo@gmail.com> + +pkgname=ncine-git +pkgver=r247.a772675 +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' 'hicolor-icon-theme') +optdepends=('glew' 'lua') +makedepends=('git' 'cmake' 'doxygen') +conflicts=('ncine') +provides=('ncine') +options=(!strip) +source=('git://github.com/nCine/nCine') +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/nCine" + ( set -o pipefail + git describe --tags --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + git clone https://github.com/nCine/nCine-data || git -C nCine-data pull +} + +build() { + mkdir -p build && cd build + + cmake ../nCine\ + -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/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE +} |