updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / groundfire / PKGBUILD
blob80a3b82457a6ff3518b0c6f1bc54335b6541ac52
1  
2 # Author: Nicoco
3  pkgname=groundfire
4  pkgver=0.25
5  pkgrel=1
6  pkgdesc="Up to 8 tanks fighting each others on one computer"
7  url="http://www.groundfire.net/"
8  license="MIT"
9  arch=('i686' 'x86_64')
10  depends=('glfw' 'freealut' 'openal')
11  source=(http://www.groundfire.net/download/groundfire-src-0.25.tar.gz groundfire.desktop groundfire Makefile groundfire.png)
12  md5sums=('52a32e3037798b81ef4430ab63ccb8ee' '72c6404e3f7e936f1fe4c3fa803913bd' 'a787f3d9a3dc812367d7c90d2aff6e12' 'ee364b8e30d2d78fab9f15cf9e0297dd' 'c9b4a39ae27332391acd089bb0f796a2')
13  build() {
15  #Install desktop file
16  install -d $startdir/pkg/usr/share/applications
17  install -m644 $startdir/src/groundfire.desktop $startdir/pkg/usr/share/applications
19  #Install launcher
20  install -d -m755 $startdir/pkg/usr/bin
21  install -m755 $startdir/src/groundfire $startdir/pkg/usr/bin
23  #Install icon
24  install -d -m755 $startdir/pkg/usr/share/pixmaps
25  install -m755 $startdir/src/groundfire.png $startdir/pkg/usr/share/pixmaps
27  #Replacing Makefile
28  cp $startdir/src/Makefile $startdir/src/$pkgname-$pkgver/Makefile
29  cd $startdir/src/$pkgname-$pkgver/
32  #Build
33  make unix
35  #Remove source
36  rm $startdir/src/$pkgname-$pkgver/src -Rf 
38  #Install Files
39  install -d -m755 $startdir/pkg/opt/$pkgname
40  cp $startdir/src/$pkgname-$pkgver/* $startdir/pkg/opt/$pkgname/ -R
42  #Allowing anyone to modify config files (didn't find a way to do it better)
43  chmod 777 $startdir/pkg/opt/$pkgname/conf -R
44  }