updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / ja2-svn / PKGBUILD
blob6f12cbcbe9c409eaf839515ce4fe8d33f3ef241d
1 # Contributor: Anton Bazhenov <anton.bazhenov at gmail>
2 # Contributor: Christoph Zeiler <rabyteNOSPAM_at_moonblade.dot.org>
3 # Contributor: Xemertix <arch88(at)katamail(dot)com>
5 pkgname=ja2-svn
6 pkgver=7059
7 pkgrel=1
8 pkgdesc="A port of Jagged Alliance 2 to SDL"
9 arch=('i686' 'x86_64')
10 url="http://tron.homeunix.org/ja2/"
11 license=('custom')
12 depends=('gcc-libs' 'sdl')
13 install=ja2.install
14 source=('ja2.png' 'ja2.desktop')
15 provides=('ja2')
16 conflicts=('ja2')
17 md5sums=('e793ae54bbe8874efc9205280281454f'
18          '1f438b07138232399a493db93a02cae9')
20 _svnmod="ja2"
21 _svntrunk="svn://tron.homeunix.org/ja2/trunk"
23 build() {
25   cd ${srcdir}
27   msg "Connecting to SVN server...."
29   if [ -d ${_svnmod}/.svn ]; then
30   (cd ${_svnmod} && svn up -r $pkgver)
31   else
32   svn co ${_svntrunk} --config-dir ./ -r $pkgver ${_svnmod}
33   fi
35   msg "SVN checkout done or server timeout"
36   msg "Starting make..."
38   svn export ${_svnmod} ${_svnmod}-build
39   cd ${_svnmod}-build
41   # make and install
42   export LNG=ENGLISH
43   make || return 1
44   make \
45     PREFIX="$pkgdir"/usr \
46     MANPREFIX="$pkgdir"/usr/share \
47   install || return 1
49   # remove .ico file
50   rm -f "$pkgdir"/usr/share/pixmaps/jagged2.ico
51   rm -f "$pkgdir"/usr/share/applications/ja2-stracciatella.desktop
53   # install license
54   install -Dm644 "SFI Source Code license agreement.txt" \
55     "$pkgdir"/usr/share/licenses/$pkgname/COPYING
57   # install icon
58   install -Dm644 ../ja2.png "$pkgdir"/usr/share/pixmaps/ja2.png
59   install -Dm644 ../ja2.desktop "$pkgdir"/usr/share/applications/ja2.desktop