diff options
author | Maximilian Stein | 2015-07-07 21:54:53 +0200 |
---|---|---|
committer | Maximilian Stein | 2015-07-07 21:54:53 +0200 |
commit | 3b1e4a23ef1b5f3f6793eccc6d419bc4d4b79338 (patch) | |
tree | 07e60613848d447b992c0a0c81ae49181cd22aa7 | |
download | aur-3b1e4a23ef1b5f3f6793eccc6d419bc4d4b79338.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 18 | ||||
-rwxr-xr-x | PKGBUILD | 35 | ||||
-rw-r--r-- | gravit.install | 8 |
3 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9b97bcd5d0fc --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = gravit + pkgdesc = A beautiful gravity simulator for linux that uses OpenGL + pkgver = 0.5.1 + pkgrel = 1 + url = http://gravit.slowchop.com + install = gravit.install + arch = x86_64 + arch = i686 + license = GPL + depends = sdl_image + depends = sdl_ttf + optdepends = lua: for spawn scripting + optdepends = libpng: for screenshots + source = http://gravit.slowchop.com/media/downloads/gravit-0.5.1.tgz + sha256sums = c7cfd213f0865071da978a9441844910b1f7b49dc10daab94934bf25e43f6e93 + +pkgname = gravit + diff --git a/PKGBUILD b/PKGBUILD new file mode 100755 index 000000000000..f65b3331b14d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Maximilian Stein <theoddbird@posteo.org> +# Contributor: Paul Roy <paul.roy.b@gmail.com> + +pkgname=gravit +pkgver=0.5.1 +pkgrel=1 +pkgdesc="A beautiful gravity simulator for linux that uses OpenGL" +arch=('x86_64' 'i686') +url="http://gravit.slowchop.com" +install=gravit.install +license="GPL" +depends=('sdl_image' 'sdl_ttf') +optdepends=("lua: for spawn scripting" + "libpng: for screenshots") +source=(http://gravit.slowchop.com/media/downloads/$pkgname-$pkgver.tgz) +sha256sums=('c7cfd213f0865071da978a9441844910b1f7b49dc10daab94934bf25e43f6e93') + + + +build() { + cd $srcdir/$pkgname-$pkgver + ./autogen.sh + ./configure --prefix=/usr --localstatedir=$HOME/.gravit --without-agar +} +package() { + cd $srcdir/$pkgname-$pkgver + make DESTDIR=$pkgdir/ install + + #moves configuration files from $prefix/etc/gravit to $prefix/share/gravit - its just more proper. + install -m644 $pkgdir/usr/etc/gravit/* $pkgdir/usr/share/gravit/ + rm $pkgdir/usr/etc/gravit/* + rmdir $pkgdir/usr/etc/gravit + rmdir $pkgdir/usr/etc + +}
\ No newline at end of file diff --git a/gravit.install b/gravit.install new file mode 100644 index 000000000000..c632e3a1f31a --- /dev/null +++ b/gravit.install @@ -0,0 +1,8 @@ +post_install() { + echo + echo + echo "NOTE: if you wish to set user-specific settings, copy all .cfg files from /usr/share/gravit/" + echo "to $HOME/.gravit/ - as this is not performed by the application itself." + echo + echo +}
\ No newline at end of file |