summaryrefslogtreecommitdiff
path: root/community/atanks/PKGBUILD
blob: 1e27f67ec6a6672ea1e36d4a14dd0b67a1ba770b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $Id: PKGBUILD 76226 2012-09-14 12:01:49Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Jacek Poplawski <jacekpoplawski@gmail.com>
# Contributor: Charlie Cox <ccoxiv@yahoo.com>

pkgname=atanks
pkgver=5.5
pkgrel=1
pkgdesc="Atomic Tanks"
url="http://atanks.sourceforge.net"
license=('GPL')
arch=('i686' 'x86_64')
makedepends=('sed')
depends=('allegro4>=4.4.0.1' 'gcc-libs')
source=("http://downloads.sourceforge.net/project/atanks/atanks/atanks-${pkgver}/atanks-${pkgver}.tar.gz")
md5sums=('1ba5a8bae3e7e49a0fdb7d21a480e70d')

build() {
  cd atanks-${pkgver}
  make
}

package() {
  cd atanks-${pkgver}
  make DESTDIR=${pkgdir} 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
}