# Maintainer: carstene1ns - http://git.io/ctPKG pkgname=yamagi-quake2-rogue-git pkgver=2.01.r0.gf749f68 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') provides=("${pkgname%-*}") conflicts=("${pkgname%-*}") install=${pkgname%-*}.install source=(${pkgname%-*}::"git+https://github.com/yquake2/rogue.git" "${pkgname%-*}.sh" "${pkgname%-*}.desktop") sha256sums=('SKIP' '7d43bd0ca15a6c82560153deea1df1109d0a448b226e316b6b7b5daae256241a' 'e7ee884b1e015743659cf668afa521976de64345872acf8e4c1e6932355c2959') pkgver() { cd ${pkgname%-*} git describe --long --tags | sed 's/^ROGUE_//;s/_/./;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { make -C ${pkgname%-*} } package() { 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 # desktop entry install -Dm644 ../${pkgname%-*}.desktop "$pkgdir"/usr/share/applications/${pkgname%-*}.desktop # license install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE }