updated on Wed Jan 25 00:20:47 UTC 2012
[aur-mirror.git] / freera-svn / PKGBUILD
blob1d47a7895682967e1d3c4f9ec24be412a8227d6b
1 # Contributor: erm67
2 arch=(i686)
3 pkgname=freera-svn
4 pkgver=392
5 pkgrel=1
6 pkgdesc="GPL implementation of the Westwood RedAlert. Needs the .mix files from the original game"
7 url="http://www.freera.org/"
8 license='GPL'
10 depends=('sdl' 'sdl_mixer')
11 makedepends=('subversion' 'boost' 'scons')
12 conflicts=('freera')
13 provides=('freera')
14 install=('freera.install')
16 source=(freera.png \
17         freera.desktop \
18         helper.sh)
20 md5sums=('ed1182e1ec2c79cb3caa12ec25e77e08'
21          '5ab3f9875e509a69b0c5dce3559bda70'
22          'f9395546b2edbfca31c799345d7c4cf5')
24 _svntrunk=https://freera.svn.sourceforge.net/svnroot/freera/freera++/trunk
25 _svnmod=freera++
27 build() {
28   cd $startdir/src
30   if [ -d $_svnmod/.svn ]; then
31     (cd $_svnmod && svn up -r $pkgver)
32   else
33     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
34   fi
36   msg "SVN checkout done or server timeout"
37   msg "Starting make..."
39   cp -r freera++/ $_svnmod-build
40   cd $startdir/src/$_svnmod-build
41   # fix compiler flags
42   scons
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
58 # vim:syntax=sh