diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-03 03:28:00 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-03 03:28:00 +0000 |
commit | 5646de4a9273897b8a619641ed988c4bb217a509 (patch) | |
tree | 9f4c0ca7e9066f8eb5f065eb7102d06d923470b2 /community/teeworlds | |
parent | 171120794a952c6e0e75aef6ecdf46cd6d5154c8 (diff) |
Mon Feb 3 03:26:00 UTC 2014
Diffstat (limited to 'community/teeworlds')
-rw-r--r-- | community/teeworlds/PKGBUILD | 59 | ||||
-rw-r--r-- | community/teeworlds/teeworlds.desktop | 14 | ||||
-rw-r--r-- | community/teeworlds/teeworlds.png | bin | 1701 -> 0 bytes |
3 files changed, 29 insertions, 44 deletions
diff --git a/community/teeworlds/PKGBUILD b/community/teeworlds/PKGBUILD index 508577be5..61388b1d9 100644 --- a/community/teeworlds/PKGBUILD +++ b/community/teeworlds/PKGBUILD @@ -6,43 +6,42 @@ pkgname=teeworlds pkgver=0.6.2 -pkgrel=1 -pkgdesc="A multiplayer 2D shooter" +pkgrel=2 +pkgdesc='Multiplayer 2D shooter' arch=('i686' 'x86_64') -url="https://www.teeworlds.com" +url='https://www.teeworlds.com' license=('custom') depends=('alsa-lib' 'glu' 'sdl' 'freetype2') -makedepends=('python' 'bam' 'mesa') -replaces=('teewars') -source=(https://www.teeworlds.com/files/${pkgname}-${pkgver}-source.tar.gz - teeworlds.desktop - teeworlds.png) -md5sums=('649f6c05a7b117096b238c07062edc39' - '3944aaf7a8c19a83510b2b39c4cddf5f' - '44f39e398409232a0e0a431ed46d8cc8') +makedepends=('python' 'bam' 'mesa' 'imagemagick' 'gendesk') +source=("https://www.teeworlds.com/files/${pkgname}-${pkgver}-source.tar.gz") +md5sums=('649f6c05a7b117096b238c07062edc39') + +prepare() { + convert "$pkgname-$pkgver-source/other/icons/Teeworlds.ico" "$srcdir/$pkgname.png" + gendesk -n --pkgname "$pkgname" --pkgdesc "$pkgdesc" \ + --name 'Teeworlds' --categories 'Game;ArcadeGame' +} build() { - # Build teeworlds - cd ${srcdir}/${pkgname}-*-source + cd "$pkgname-$pkgver-source" - bam server_release client_release + bam server_release client_release } package() { - cd ${srcdir}/${pkgname}-*-source - - # Install data files - mkdir -p ${pkgdir}/usr/share/${pkgname}/data - cp -r data/* ${pkgdir}/usr/share/${pkgname}/data - - 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 license.txt \ - ${pkgdir}/usr/share/licenses/${pkgname}/license.txt + cd "$pkgname-$pkgver-source" + + # Install data files + mkdir -p ${pkgdir}/usr/share/${pkgname}/data + cp -r data/* ${pkgdir}/usr/share/${pkgname}/data + + 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}-0.png ${pkgdir}/usr/share/pixmaps/${pkgname}.png + + install -Dm644 license.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt } + +# vim:set ts=2 sw=2 et: diff --git a/community/teeworlds/teeworlds.desktop b/community/teeworlds/teeworlds.desktop deleted file mode 100644 index ddfb8994d..000000000 --- a/community/teeworlds/teeworlds.desktop +++ /dev/null @@ -1,14 +0,0 @@ -[Desktop Entry] -Version=1.0 -Type=Application -Icon=teeworlds -Exec=teeworlds -Terminal=false -StartupNotify=false - -Name=TeeWorlds -GenericName=Arcade Game -Comment=is a multiplayer 2D FPS shooter -Comment[pl_PL]=wieloosobowa strzelanka FTP w 2D - -Categories=Game;ArcadeGame; diff --git a/community/teeworlds/teeworlds.png b/community/teeworlds/teeworlds.png Binary files differdeleted file mode 100644 index 890baaff3..000000000 --- a/community/teeworlds/teeworlds.png +++ /dev/null |