updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / vangers-community-rus / PKGBUILD
blobe5f8213f3365f34483d60c9fea4c4a00368f207e
1 # Contributor: Hokum <hokum_at_mail_dot_ru>
3 pkgname=vangers-community-rus
4 _pkgname=Vangers_Community_Linux_rus_svn283
5 pkgver=svn238
6 pkgrel=3
7 pkgdesc="Vangers Open Beta Game, svn283 binary build, russian."
8 arch=('i686' 'x86_64')
9 url="http://bitcheese.net/wiki/howto/vangers-linux"
10 license=('other')
11 install='vangers.install'
12 depends=('mesa' 'sdl_mixer' 'sdl_net' 'ffmpeg' 'clunk-svn' 'libvorbis' 'libogg')
13 source=(http://slingonsk.ru/vangers/Vangers_Community_Linux_rus_svn283.tar.bz2
14         $pkgname.desktop
15         vangers.png
16         vangers32
17         vangers64)
18 sha256sums=('150682f39194a7be2154fb7511aeae42ba8fe65c0f2cc70e87dae4ddae68e9f5'
19          'c2fa001737db3a934f3e0174b386b75fe708f6d7d5cf17d559ca2c0691dac372'
20          'ea37f45ece6b174885ae8732da53bfd5a7c278d9fe169dc04613c36e721dcbdd'
21          'e39d44e0f63817b1d36de7317415ab1d9e000012c37eb1e1ead9fa10d1294b85'
22          '2f389b4a0dc9510a61374eda658d8178b0e383918f892457dcb4725c27636480')
25 build() {
27         cd $srcdir
29   # create pkgdir folders
30   install -d $pkgdir/usr/bin
31   install -d $pkgdir/usr/share/{applications,games,icons}
33   # game folder
34   cp -R $_pkgname $pkgdir/usr/share/games/$pkgname
36   # executable link
37   install -m775 $startdir/vangers32 $pkgdir/usr/share/games/$pkgname/
38   install -m775 $startdir/vangers64 $pkgdir/usr/share/games/$pkgname/
39   
40   if [ "$CARCH" = "i686" ]; 
41   then ln -s /usr/share/games/$pkgname/vangers32 $pkgdir/usr/bin/vangers 
42   else ln -s /usr/share/games/$pkgname/vangers64 $pkgdir/usr/bin/vangers
43   fi
45   # icon/.desktop
46   install -m644 $startdir/vangers.png $pkgdir/usr/share/icons/vangers.png
47   install -m644 $startdir/$pkgname.desktop $pkgdir/usr/share/applications/