Date: Monday, November 5, 2018 @ 14:09:36 Author: svenstaro Revision: 401561
upgpkg: teeworlds 0.7.0-2 Fix maps and translations not being included Modified: teeworlds/trunk/PKGBUILD ----------+ PKGBUILD | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-11-05 11:22:03 UTC (rev 401560) +++ PKGBUILD 2018-11-05 14:09:36 UTC (rev 401561) @@ -5,22 +5,32 @@ # Contributor: Daniel J Griffiths <[email protected]> pkgname=teeworlds pkgver=0.7.0 -pkgrel=1 +pkgrel=2 pkgdesc='Fast-paced multiplayer 2D shooter game' arch=('x86_64') url='https://www.teeworlds.com' license=('custom') depends=('alsa-lib' 'glu' 'sdl2' 'freetype2') -makedepends=('python' 'bam' 'mesa' 'imagemagick' 'gendesk') -source=("https://github.com/teeworlds/teeworlds/archive/${pkgver}.tar.gz" +makedepends=('python' 'bam' 'mesa' 'imagemagick' 'gendesk' 'git') +source=("git+git://github.com/teeworlds/teeworlds.git#tag=$pkgver" + "git+git://github.com/teeworlds/teeworlds-maps.git" + "git+git://github.com/teeworlds/teeworlds-translation.git" "https://github.com/matricks/bam/archive/v0.5.1.tar.gz") -sha512sums=('5ec82e097aa1f45ca90818b7d91273a2e9066c5b4d940141c05d828ce26ea4d0eea61180c008dd55052d54e4555001c136a2eb33fc5a8ca5f62ffe3340fdf047' +sha512sums=('SKIP' + 'SKIP' + 'SKIP' 'e6f1b3daad6073c58b0e3cbf836bb0a6b66f0c36532d6e6eca9949239ab8b584cc88f892cce6f74974e370a8a688f33a95dde86dd65cc1790e49e5f8aeab0fef') prepare() { - convert +set date:create +set date:modify "$pkgname-$pkgver/other/icons/Teeworlds.ico" "$srcdir/$pkgname.png" - gendesk -n --pkgname "$pkgname" --pkgdesc "$pkgdesc" \ + convert +set date:create +set date:modify "${pkgname}/other/icons/Teeworlds.ico" "${srcdir}/${pkgname}.png" + gendesk -n --pkgname "${pkgname}" --pkgdesc "${pkgdesc}" \ --name 'Teeworlds' --categories 'Game;ArcadeGame' + + cd teeworlds + git submodule init + git config submodule."datasrc/languages".url ${srcdir}/teeworlds-translation + git config submodule."datasrc/maps".url ${srcdir}/teeworlds-maps + git submodule update } build() { @@ -28,12 +38,12 @@ ./make_unix.sh cd .. - cd "$pkgname-$pkgver" + cd teeworlds ../bam-0.5.1/bam conf=release } package() { - cd "$pkgname-$pkgver" + cd teeworlds # Install data files mkdir -p ${pkgdir}/usr/share/${pkgname}/data
