# Maintainer: carstene1ns - http://git.io/ctPKG pkgname=yamagi-quake2-xatrix-git pkgver=2.01.r3.g150c521 pkgrel=1 arch=('i686' 'x86_64') pkgdesc="Quake II - Mission Pack 1 ('The Reckoning') 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/xatrix.git" "${pkgname%-*}.sh" "${pkgname%-*}.desktop") sha256sums=('SKIP' '7c60d4bd78a528f5cf08425cfdcb87dacf574d3912c44439e623e35f37fbc972' 'e65add2561c7dc4a14061e17a24436f768b69968fbc6fa06022acf9e17d80854') pkgver() { cd ${pkgname%-*} git describe --long --tags | sed 's/^XATRIX_//;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/xatrix/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 }