updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / daimonin-svn / PKGBUILD
blob20a88e75c154a9dee1c9f9a02d3a4487712725a6
1 # Maintainer: elwin013 <kontakt AT elwin013 DOT com>
2 # Contributor: Jesses <jesse.jaara AT gmail DOT com>
3 # Contributor: Jiri Prochazka <ojirio AT gmail DOT com>
4 pkgname=daimonin-svn
5 pkgver=6022
6 pkgrel=1
7 pkgdesc="A SVN version of free, open source, Massively Multiplayer Online Role-playing Game (MMORPG)."
8 arch=(i686 x86_64)
9 url="http://www.daimonin.org/"
10 license=('GPL')
11 depends=('curl' 'sdl_image' 'sdl_mixer' 'physfs')
12 makedepends=('subversion')
13 source=(Makefile.am \
14 ${pkgname}.desktop \
15 ${pkgname}.png
16 ${pkgname})
17 md5sums=('3a74c7bdf7aece45d3330c4bf3b18800'
18          '0cebb50075d4f796508293989ad7004b'
19          '7480f31868a20a4bce8fe940adc3c243'
20          '8875cfb85900606ce08c214e303ffc44')
22 _svntrunk=https://daimonin.svn.sourceforge.net/svnroot/daimonin/trunk/client
23 _svnmod=client
25 build() {
26   cd $srcdir
27   if [ -d $_svnmod/.svn ]; then
28     (cd $_svnmod && svn up -r $pkgver)
29   else
30     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
31   fi
33   msg "SVN checkout done or server timeout"
35   cp -r $srcdir/$_svnmod $srcdir/$_svnmod-build
36   cp Makefile.am $srcdir/$_svnmod-build/make/linux/
37   
38   cd $srcdir/$_svnmod-build/make/linux
39   ./bootstrap
40   ./configure --prefix=/usr/share
41   make
42   msg "Make install"
43   make DESTDIR="${pkgdir}" install
44   
45   mv $pkgdir/usr/share/daimonin $pkgdir/usr/share/daimonin-svn
46   
47   cd ../../
48   mkdir -p $pkgdir/usr/share/licenses/$pkgname
49   install --mode=644 License $pkgdir/usr/share/licenses/$pkgname/License
50   install --mode=644 media/License\ Note $pkgdir/usr/share/licenses/$pkgname/License\ Note
51   install --mode=644 media/media.txt $pkgdir/usr/share/licenses/$pkgname/media.txt
52   
53   cd ../../
54   mkdir -p $pkgdir/usr/bin
55   install --mode=755 $pkgname $pkgdir/usr/bin/
56   mkdir $pkgdir/usr/share/applications
57   mkdir $pkgdir/usr/share/pixmaps
58   install --mode=644 $pkgname.desktop $pkgdir/usr/share/applications/
59   install --mode=644 $pkgname.png $pkgdir/usr/share/pixmaps/