updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / ja2 / PKGBUILD
blob1e690a2662f044387792e6f2080326bb627c9d9c
1 # Contributor: Anton Bazhenov <anton.bazhenov at gmail>
2 # Contributor: Christoph Zeiler <rabyteNOSPAM_at_moonblade.dot.org>
4 pkgname=ja2
5 pkgver=0.12.1
6 pkgrel=1
7 pkgdesc="A port of Jagged Alliance 2 to SDL"
8 arch=('i686' 'x86_64')
9 url="http://tron.homeunix.org/ja2/"
10 license=('custom')
11 depends=('gcc-libs' 'sdl')
12 install=$pkgname.install
13 source=(http://tron.homeunix.org/$pkgname/$pkgname-$pkgver-source.tar.bz2
14         $pkgname.png)
15 md5sums=('3981a84850957362fddb0b0e90c231b8'
16          'e793ae54bbe8874efc9205280281454f')
18 build() {
19   cd "$srcdir"/$pkgname-$pkgver
21   # fix icon in the .desktop file
22   sed -i "s/jagged2\.ico/$pkgname/" $pkgname-stracciatella.desktop
24   # make and install
25   export LNG=ENGLISH
26   make || return 1
27   make \
28     PREFIX="$pkgdir"/usr \
29     MANPREFIX="$pkgdir"/usr/share \
30     install || return 1
32   # remove .ico file
33   rm -f "$pkgdir"/usr/share/pixmaps/jagged2.ico
35   # install license
36   install -Dm644 "SFI Source Code license agreement.txt" \
37     "$pkgdir"/usr/share/licenses/$pkgname/COPYING
39   # install icon
40   install -Dm644 ../$pkgname.png "$pkgdir"/usr/share/pixmaps/$pkgname.png