6 pkgdesc="GPL implementation of the Westwood RedAlert. Needs the .mix files from the original game"
7 url="http://www.freera.org/"
10 depends=('sdl' 'sdl_mixer')
11 makedepends=('subversion' 'boost' 'scons')
14 install=('freera.install')
20 md5sums=('ed1182e1ec2c79cb3caa12ec25e77e08'
21 '5ab3f9875e509a69b0c5dce3559bda70'
22 'f9395546b2edbfca31c799345d7c4cf5')
24 _svntrunk=https://freera.svn.sourceforge.net/svnroot/freera/freera++/trunk
30 if [ -d $_svnmod/.svn ]; then
31 (cd $_svnmod && svn up -r $pkgver)
33 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
36 msg "SVN checkout done or server timeout"
37 msg "Starting make..."
39 cp -r freera++/ $_svnmod-build
40 cd $startdir/src/$_svnmod-build
43 cp $startdir/helper.sh freera.sh
44 sed -i -e "s|GAMEDIR|/usr/share/freera/|" freera.sh
45 sed -i -e "s|BINARY|freera-bin|" freera.sh
46 mkdir -p $startdir/pkg/usr/bin
47 install -m755 -D freera $startdir/pkg/usr/bin/freera-bin
48 install -m755 -D freera.sh $startdir/pkg/usr/bin/freera
49 mkdir -p $startdir/pkg/usr/share/pixmaps
50 install -m644 -D $startdir/freera.png $startdir/pkg/usr/share/pixmaps
51 mkdir -p $startdir/pkg/usr/share/applications
52 install -m644 -D $startdir/freera.desktop $startdir/pkg/usr/share/applications
53 mkdir -p $startdir/pkg/usr/share/freera
54 find data|grep .svn|xargs rm -rf
55 mv data $startdir/pkg/usr/share/freera
56 rm -rf $startdir/src/$_svnmod-build