1 #Contributor: Michael Krauss <hippodriver@gmx.net>
2 #old contributor: Jacek Poplawski <jacekpoplawski@gmail.com>
7 pkgdesc="turn-based strategy engine heavily inspired by Panzer General"
8 url="http://lgames.sourceforge.net/index.php?project=LGeneral"
9 license=('GPL' 'custom')
10 depends=("sdl" "sdl_mixer")
11 makedepends=('automake-1.9')
12 optdepends=('lgeneral-data: automatically install PG data from the internet')
13 arch=('x86_64' 'i686')
15 http://downloads.sourceforge.net/lgeneral/lgeneral-1.2.tar.gz
17 lgeneral-1.2_beta13-as-needed.patch
23 export PATH=$PATH:"/opt/automake-1.9/bin"
24 cd $startdir/src/lgeneral-1.2
25 ./configure --prefix=/usr
27 patch src/misc.h $startdir/patch0.diff
28 patch -p0 < $startdir/lgeneral-1.2_beta13-as-needed.patch
29 CFLAGS='-g' make || return 1
30 make install prefix=$startdir/pkg/usr
33 mkdir -p $startdir/pkg/usr/share/pixmaps
34 mkdir -p $startdir/pkg/usr/share/applications
35 cp $startdir/src/lgeneral-1.2/lgeneral48.png\
36 $startdir/pkg/usr/share/pixmaps/lgeneral.png
37 cp $startdir/lgeneral.desktop $startdir/pkg/usr/share/applications
40 mkdir -p $startdir/pkg/usr/share/licenses/lgeneral
41 cp $startdir/COPYING $startdir/pkg/usr/share/licenses/lgeneral/COPYING
44 md5sums=('a34eae8bc2c05cfa81fe9a9994988613'
45 '3ef9ebd3be24b6102ed6063d421f84cb'
46 '19d46a5cc790805eaa0978ba7bef4de6'
47 '8b12bb7e90c4739debeada0e444688ec'
48 'e711ea63f9d950d00866d3ce40e25a17')