diff options
Diffstat (limited to 'community/teeworlds/PKGBUILD')
-rw-r--r-- | community/teeworlds/PKGBUILD | 48 |
1 files changed, 21 insertions, 27 deletions
diff --git a/community/teeworlds/PKGBUILD b/community/teeworlds/PKGBUILD index 12e6720c4..68f2e64b8 100644 --- a/community/teeworlds/PKGBUILD +++ b/community/teeworlds/PKGBUILD @@ -1,65 +1,59 @@ # Contributor: Allan McRae <allan@archlinux.org> # Contributor: Armin 'IsSuE' Praher [issue.at.gmx.dot.at] # Contributor: [vEX] <niechift.dot.vex.at.gmail.dot.com> -# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us> +# Contributor: Daniel J Griffiths <ghost1227@archlinux.us> +# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> pkgname=teeworlds -pkgver=0.5.2 -_bamver=0.2.0 -pkgrel=2 +pkgver=0.6.0 +_bamver=0.4.0 +pkgrel=1 pkgdesc="A multiplayer 2D shooter" arch=('i686' 'x86_64') url="http://teeworlds.com" license=('custom') -depends=('alsa-lib' 'mesa' 'sdl') +depends=('alsa-lib' 'mesa' 'sdl' 'freetype2') makedepends=('python2') replaces=('teewars') source=(http://www.teeworlds.com/files/${pkgname}-${pkgver}-src.tar.gz - http://www.teeworlds.com/files/bam-${_bamver}.tar.gz + https://github.com/downloads/matricks/bam/bam-${_bamver}.tar.bz2 teeworlds.desktop - teeworlds.png - fix_datadir_search.patch) -md5sums=('f605f6df9f1714dcda4cba1d281cc757' - 'd4efe74591a73c1cec8b34d76ffd1049' + teeworlds.png) +md5sums=('4d6e5d0fb1b5f0bdf6c5c49714045ef1' + 'f8b62ad553c3615a725a034df4fb4257' '3944aaf7a8c19a83510b2b39c4cddf5f' - '44f39e398409232a0e0a431ed46d8cc8' - '673791ecb74274346456f0fae53b4428') + '44f39e398409232a0e0a431ed46d8cc8') build() { - # Build bam (used to build teewars) + # Build bam (used to build teeworlds) # Now it is released separately I should make a separate package... cd ${srcdir}/bam-${_bamver} ./make_unix.sh # Build teeworlds - cd ${srcdir}/${pkgname}-${pkgver}-src - - # fix for FS 13118 which will be applied in next release - patch -p1 -i ../fix_datadir_search.patch + cd ${srcdir}/${pkgname}-${pkgver}-source # Use Python 2 - sed -i 's/python /python2 /' default.bam + sed -i 's/python /python2 /' bam.lua - ../bam-${_bamver}/src/bam server_release client_release + ../bam-${_bamver}/bam server_release client_release } package() { - cd ${srcdir}/${pkgname}-${pkgver}-src + cd ${srcdir}/${pkgname}-${pkgver}-source # Install data files mkdir -p ${pkgdir}/usr/share/${pkgname}/data - cp -r ${srcdir}/${pkgname}-${pkgver}-src/data/* \ - ${pkgdir}/usr/share/${pkgname}/data + cp -r data/* ${pkgdir}/usr/share/${pkgname}/data - install -Dm755 ${srcdir}/${pkgname}-${pkgver}-src/${pkgname} \ - ${pkgdir}/usr/bin/${pkgname} - install -Dm755 ${srcdir}/${pkgname}-${pkgver}-src/${pkgname}_srv \ - ${pkgdir}/usr/bin/${pkgname}_srv + install -Dm755 ${pkgname} ${pkgdir}/usr/bin/${pkgname} + install -Dm755 ${pkgname}_srv ${pkgdir}/usr/bin/${pkgname}_srv install -Dm644 ${srcdir}/${pkgname}.desktop \ ${pkgdir}/usr/share/applications/${pkgname}.desktop install -Dm644 ${srcdir}/${pkgname}.png \ ${pkgdir}/usr/share/pixmaps/${pkgname}.png - install -Dm644 ${srcdir}/${pkgname}-${pkgver}-src/license.txt \ + + install -Dm644 license.txt \ ${pkgdir}/usr/share/licenses/${pkgname}/license.txt } |