updated on Wed Jan 18 20:10:41 UTC 2012
[aur-mirror.git] / fruitcut-git / PKGBUILD
blobd94c38e9e90417ea899725b82ac6f0dd30311c6b
1 # Maintainer: Philipp Middendorf <pmidden@gmx.net>
2 pkgname=fruitcut-git
3 pkgver=20110613
4 pkgrel=1
5 pkgdesc="Arcade game where the goal is to cut fruits to earn points"
6 arch=('i686' 'x86_64')
7 url="http://fruitcut.com"
8 license=('GPL')
9 groups=()
10 depends=('libfcppt-git' 'libmizuiro-git' 'libawl-git' 'libsge-git' 'boost>=1.46.0' 'bullet')
11 makedepends=('git' 'cmake>=2.6')
12 options=()
13 install=
14 source=()
15 noextract=()
16 md5sums=() #generate with 'makepkg -g'
18 _download_from_git()
20   msg "Downloading $1..."
21   if [ -d $1 ]; then
22     cd $1;
23     if ! git pull origin; then
24         msg "Pulling $1 didn't work"
25         cd ..;
26         false;
27     else
28       msg "Done with $1."
29       cd ..
30     fi;
31   else
32     msg "Doesn't exist yet, cloning..."
33     git clone $2 $1 --depth 1 
34     msg "Done with $1"
35   fi;
38 build() {
39   cd "$srcdir"
41   _download_from_git 'fruitcut' 'git://github.com/pmiddend/fruitcut.git'
43   msg "Starting make..."
45   cd "$srcdir/fruitcut"
47   rm -rf build;
48   mkdir build;
49   cd build;
50   cmake -D CMAKE_INSTALL_PREFIX:="/usr" ..;
51   make -j3
54 package() {
55   cd "$srcdir/fruitcut/build"
56   make DESTDIR="$pkgdir" install
57