diff options
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 18 |
2 files changed, 15 insertions, 6 deletions
@@ -1,6 +1,6 @@ pkgbase = yamagi-quake2-rogue-git pkgdesc = Quake II - Mission Pack 2 ('Ground Zero') for yamagi-quake2 (development version) - pkgver = 2.01.r0.gf749f68 + pkgver = 2.04.r1.g891e75c pkgrel = 1 url = http://www.yamagi.org/quake2/ install = yamagi-quake2-rogue.install @@ -8,6 +8,7 @@ pkgbase = yamagi-quake2-rogue-git arch = x86_64 license = GPL license = custom + makedepends = cmake depends = sh depends = yamagi-quake2 provides = yamagi-quake2-rogue @@ -1,13 +1,14 @@ # Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG pkgname=yamagi-quake2-rogue-git -pkgver=2.01.r0.gf749f68 +pkgver=2.04.r1.g891e75c pkgrel=1 arch=('i686' 'x86_64') pkgdesc="Quake II - Mission Pack 2 ('Ground Zero') for yamagi-quake2 (development version)" url="http://www.yamagi.org/quake2/" license=('GPL' 'custom') depends=('sh' 'yamagi-quake2') +makedepends=('cmake') provides=("${pkgname%-*}") conflicts=("${pkgname%-*}") install=${pkgname%-*}.install @@ -23,19 +24,26 @@ pkgver() { git describe --long --tags | sed 's/^ROGUE_//;s/_/./;s/\([^-]*-g\)/r\1/;s/-/./g' } +prepare() { + rm -rf build + mkdir -p build +} + build() { - make -C ${pkgname%-*} + cd build + cmake ../${pkgname%-*} -DCMAKE_BUILD_TYPE=Release + make } package() { + # game library + install -Dm644 build/Release/game.so "$pkgdir"/usr/lib/yamagi-quake2/rogue/game.so + cd ${pkgname%-*} # game launcher install -Dm755 ../${pkgname%-*}.sh "$pkgdir"/usr/bin/${pkgname%-*} - # game library - install -Dm644 release/game.so "$pkgdir"/usr/share/yamagi-quake2/rogue/game.so - # doc install -Dm644 README "$pkgdir"/usr/share/doc/${pkgname%-*}/README |