diff options
author | root <root@rshg047.dnsready.net> | 2011-06-07 22:47:46 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-06-07 22:47:46 +0000 |
commit | 4d91fc9a2dc38054b8748f27193dc3a6950bda3c (patch) | |
tree | d7af2e15a96d98c0495de0d066c0204c6947778c /community/atanks/PKGBUILD | |
parent | 93a9cde1226d0c82849bc71ff4d481d3d2698dc1 (diff) |
Tue Jun 7 22:47:46 UTC 2011
Diffstat (limited to 'community/atanks/PKGBUILD')
-rw-r--r-- | community/atanks/PKGBUILD | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/community/atanks/PKGBUILD b/community/atanks/PKGBUILD index 17a1c5c84..df575a001 100644 --- a/community/atanks/PKGBUILD +++ b/community/atanks/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 42290 2011-03-16 10:36:27Z spupykin $ +# $Id: PKGBUILD 48863 2011-06-06 21:45:37Z tdziedzic $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor: Jacek Poplawski <jacekpoplawski@gmail.com> # Contributor: Charlie Cox <ccoxiv@yahoo.com> pkgname=atanks -pkgver=4.8 +pkgver=5.0 pkgrel=1 pkgdesc="Atomic Tanks" url="http://atanks.sourceforge.net" @@ -12,25 +12,32 @@ license=('GPL') arch=('i686' 'x86_64') makedepends=('sed') depends=('allegro>=4.4.0.1' 'gcc-libs') -source=(http://downloads.sourceforge.net/project/atanks/atanks/atanks-$pkgver/atanks-$pkgver.tar.gz) -md5sums=('a00b709f6aec4e0e33ab0d56a6e932e7') +source=("http://downloads.sourceforge.net/project/atanks/atanks/atanks-${pkgver}/atanks-${pkgver}.tar.gz") +md5sums=('1978fabfb5ab2c33bd079eb492ee4362') build() { - cd "$srcdir/$pkgname-$pkgver" + cd atanks-${pkgver} #debug messages fix - sed -i '/lines->Display_All(TRUE)/d' src/files.cpp - sed -i '/Scroll Offset:/d' src/files.cpp - sed -i '/T offset:/d' src/files.cpp + #sed -i '/lines->Display_All(TRUE)/d' src/files.cpp + #sed -i '/Scroll Offset:/d' src/files.cpp + #sed -i '/T offset:/d' src/files.cpp # - sed -i '1,1i#include <sys/stat.h>' src/files.cpp + #sed -i '1,1i#include <sys/stat.h>' src/files.cpp make +} + +package() { + cd atanks-${pkgver} + make PREFIX=${pkgdir}/usr/ INSTALL="install -c" install sed -i 's/^Name=atanks/Name=Atomic Tanks/' atanks.desktop sed -i 's/^Categories=Game;/Categories=Game;StrategyGame;/' atanks.desktop - install -Dm644 atanks.desktop $pkgdir/usr/share/applications/atanks.desktop - install -Dm644 atanks.png $pkgdir/usr/share/pixmaps/atanks.png + install -Dm644 atanks.desktop \ + $pkgdir/usr/share/applications/atanks.desktop + install -Dm644 atanks.png \ + $pkgdir/usr/share/pixmaps/atanks.png } |