# Maintainer: Angelo Theodorou pkgname=ncpong-git pkgver=r74.436b9dc pkgrel=1 pkgdesc="An example game made with the nCine" arch=('i686' 'x86_64') url="http://ncine.github.io" license=('MIT') depends=('ncine') makedepends=('git' 'cmake') conflicts=('ncpong') provides=('ncpong') options=(!strip) source=( 'git+https://github.com/nCine/ncPong' 'git+https://github.com/nCine/ncPong-data' ) md5sums=( 'SKIP' 'SKIP' ) pkgver() { cd "$srcdir/ncPong" ( 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 ../ncPong\ -DCMAKE_BUILD_TYPE=Release\ -DCMAKE_PREFIX_PATH=/usr/lib/cmake/nCine\ -DNCPROJECT_BUILD_ANDROID=OFF\ -DNCPROJECT_STRIP_BINARIES=ON\ -DCMAKE_INSTALL_PREFIX=/usr make } package() { make -C build DESTDIR=$pkgdir PREFIX= install install -Dm0644 $srcdir/ncPong/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE }