PKGBUILDs/extra/celestia/PKGBUILD
2009-10-09 21:23:22 -05:00

32 lines
957 B
Bash

# $Id: PKGBUILD 46231 2009-07-14 19:30:45Z ronald $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor : Damir Perisa <damir.perisa@bluewin.ch>
pkgname=celestia
pkgver=1.6.0
pkgrel=1
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>=7')
options=('!makeflags')
source=(http://downloads.sourceforge.net/sourceforge/celestia/${pkgname}-${pkgver}.tar.gz
'celestia-1.5.1-gcc44.patch')
md5sums=('9b96a8e7666ab5a26f032b9d605e023d'
'0c606dbd3a641afb1b0725428db854c8')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
# build patch
patch -Np0 < ${srcdir}/celestia-1.5.1-gcc44.patch || return 1
./configure --prefix=/usr \
--with-lua=/usr \
--datadir=/usr/share \
--with-gtk
make || return 1
make DESTDIR=${pkgdir} install || return 1
}