diff options
author | Angelo Theodorou | 2019-07-30 15:54:02 +0200 |
---|---|---|
committer | Angelo Theodorou | 2019-07-30 15:54:02 +0200 |
commit | 9e76e85303841cc5d384b796960a88fe97eb20bc (patch) | |
tree | 308f67e370aa6aaf3150d451dcece341f9820f80 | |
download | aur-9e76e85303841cc5d384b796960a88fe97eb20bc.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 45 |
2 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e36e571f0124 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = ncinvaders-git + pkgdesc = A simplified version of Space Invaders made with the nCine + pkgver = r2.9c3d273 + pkgrel = 1 + url = http://ncine.github.io + arch = i686 + arch = x86_64 + license = MIT + makedepends = git + makedepends = cmake + depends = ncine + provides = ncinvaders + conflicts = ncinvaders + options = !strip + source = git://github.com/nCine/ncInvaders + md5sums = SKIP + +pkgname = ncinvaders-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..074ac7a99f49 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Contributor: Angelo Theodorou <encelo@gmail.com> + +pkgname=ncinvaders-git +pkgver=r2.9c3d273 +pkgrel=1 +pkgdesc="A simplified version of Space Invaders made with the nCine" +arch=('i686' 'x86_64') +url="http://ncine.github.io" +license=('MIT') +depends=('ncine') +makedepends=('git' 'cmake') +conflicts=('ncinvaders') +provides=('ncinvaders') +options=(!strip) +source=('git://github.com/nCine/ncInvaders') +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/ncInvaders" + ( 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/ncInvaders-data || git -C ncInvaders-data pull +} + +build() { + mkdir -p build && cd build + + cmake ../ncInvaders\ + -DCMAKE_BUILD_TYPE=Release\ + -DPACKAGE_BUILD_ANDROID=OFF\ + -DPACKAGE_STRIP_BINARIES=ON\ + -DPACKAGE_DEFAULT_DATA_DIR=/usr/share/ncinvaders/data\ + -DCMAKE_INSTALL_PREFIX=/usr + make +} + +package() { + make -C build DESTDIR=$pkgdir PREFIX= install + install -Dm0644 $srcdir/ncInvaders/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE +} |