summaryrefslogtreecommitdiff
path: root/extra/celestia/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/celestia/PKGBUILD')
-rw-r--r--extra/celestia/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/extra/celestia/PKGBUILD b/extra/celestia/PKGBUILD
new file mode 100644
index 000000000..87c4af8a6
--- /dev/null
+++ b/extra/celestia/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 63841 2010-01-18 21:47:42Z ibiru $
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor : Damir Perisa <damir.perisa@bluewin.ch>
+
+pkgname=celestia
+pkgver=1.6.0
+pkgrel=2
+pkgdesc="Real-time space simulation"
+arch=('i686' 'x86_64')
+license=('GPL')
+url="http://www.shatters.net/celestia/"
+depends=('gtk2' 'libtheora' 'lua' 'gtkglext' 'glut' 'libxmu' 'mesa' 'libjpeg>=8')
+options=('!makeflags')
+source=(http://downloads.sourceforge.net/sourceforge/celestia/${pkgname}-${pkgver}.tar.gz
+ celestia-1.5.1-gcc44.patch libpng14.patch)
+md5sums=('9b96a8e7666ab5a26f032b9d605e023d'
+ '0c606dbd3a641afb1b0725428db854c8'
+ '829c0860659272a9f55aedf096ee4216')
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ # build patch
+ patch -Np0 < ${srcdir}/celestia-1.5.1-gcc44.patch || return 1
+ patch -Np1 -i ${srcdir}/libpng14.patch || return 1
+
+ ./configure --prefix=/usr \
+ --with-lua=/usr \
+ --datadir=/usr/share \
+ --with-gtk
+ make || return 1
+ make DESTDIR=${pkgdir} install || return 1
+}
+