blob: 561826e5f18776982154d696336cf318564bde80 (
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
33
34
35
36
|
# $Id: PKGBUILD 42290 2011-03-16 10:36:27Z spupykin $
# 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
pkgrel=1
pkgdesc="Atomic Tanks"
url="http://atanks.sourceforge.net"
license=('GPL')
arch=('i686' 'x86_64' 'mips64el')
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')
build() {
cd "$srcdir/$pkgname-$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 '1,1i#include <sys/stat.h>' src/files.cpp
make
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
}
|