updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / gravit / PKGBUILD
blob4998021ee1fa306e999d127b1fdf3699640fd553
1 # Maintainer: Paul Roy <paul.roy.b@gmail.com>
2 # -------------------------------------------
4 pkgname=gravit
5 pkgver=0.4.2
6 pkgrel=1
7 pkgdesc="Gravit - A beautiful gravity simulator for linux that uses OpenGL"
8 arch=('i686')
9 url="http://gravit.slowchop.com"
10 install=gravit.install
11 license="GPL"
12 depends=('sdl_image' 'sdl_ttf')
13 source=(http://gravit.slowchop.com/dist/$pkgname-$pkgver.tar.gz)
14 md5sums=('bb813930069b8661f1019c138c6727e5')
17 build() {
18   cd $startdir/src/gravit-$pkgver
19   
20   ./configure --prefix=/usr --localstatedir=$HOME/.gravit
21   make || return 1
22   make DESTDIR=$startdir/pkg install
23   
24   #moves configuration files from $prefix/etc/gravit to $prefix/share/gravit - its just more proper.
26   install -m644 $startdir/pkg/usr/etc/gravit/* $startdir/pkg/usr/share/gravit/
27   rm $startdir/pkg/usr/etc/gravit/*
28   rmdir $startdir/pkg/usr/etc/gravit
29   rmdir $startdir/pkg/usr/etc
30