summaryrefslogtreecommitdiff
path: root/extra/celestia/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-02-06 23:14:50 +0000
committerroot <root@rshg054.dnsready.net>2012-02-06 23:14:50 +0000
commit1fa6edfba8d1e31ca1c0d59e8202cd3c62ccf393 (patch)
tree8d7ccc2dc9d08a4c3cde26aa01c887e9a0fc2fa1 /extra/celestia/PKGBUILD
parentbdb5b3e66f6afa586ea147f69af5e4ba388f7615 (diff)
Mon Feb 6 23:14:50 UTC 2012
Diffstat (limited to 'extra/celestia/PKGBUILD')
-rw-r--r--extra/celestia/PKGBUILD30
1 files changed, 21 insertions, 9 deletions
diff --git a/extra/celestia/PKGBUILD b/extra/celestia/PKGBUILD
index 702e3e05f..47608a909 100644
--- a/extra/celestia/PKGBUILD
+++ b/extra/celestia/PKGBUILD
@@ -1,38 +1,50 @@
-# $Id: PKGBUILD 127269 2011-06-12 08:43:30Z ronald $
+# $Id: PKGBUILD 148690 2012-02-05 11:47:02Z ibiru $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor : Damir Perisa <damir.perisa@bluewin.ch>
pkgname=celestia
pkgver=1.6.1
-pkgrel=1
+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')
options=('!makeflags')
-source=(http://downloads.sourceforge.net/sourceforge/celestia/${pkgname}-${pkgver}.tar.gz
- celestia-1.5.1-gcc44.patch celestia-1.6.1-gentoo.patch)
+source=("http://downloads.sourceforge.net/sourceforge/celestia/${pkgname}-${pkgver}.tar.gz"
+ 'celestia-1.6.1-gcc46.patch'
+ 'celestia-1.6.1-libpng15.patch'
+ 'celestia-1.6.1-linking.patch')
sha1sums=('1f0fdf4525a8b9d6c708e1f6383babed670d18e7'
- '5ab2769e239a89468bb8ffb5740cbeec6018143c'
- 'aebf894630fdba4c4d429622f5e2b8da56d8b61e')
+ '7c08ca391603806d788cb8f3342acedafc924eef'
+ '46ecc4e10b24191384bc848c206652498843adf0'
+ '534c8eee18d13a868c91f0b870ebecc05f3e7ae1')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
# build patch
- patch -Np0 < ${srcdir}/celestia-1.5.1-gcc44.patch
- patch -Np0 -i ${srcdir}/celestia-1.6.1-gentoo.patch
+ patch -Np0 -i "${srcdir}/celestia-1.6.1-gcc46.patch"
+ patch -Np0 -i "${srcdir}/celestia-1.6.1-libpng15.patch"
+ patch -Np1 -i "${srcdir}/celestia-1.6.1-linking.patch"
+ # This version of Celestia has a bug in the font rendering and requires -fsigned-char
+ export CFLAGS="$CFLAGS -fsigned-char"
+ export CXXFLAGS="$CXXFLAGS -fsigned-char"
+
+ autoreconf
./configure --prefix=/usr \
--with-lua=/usr \
--datadir=/usr/share \
- --with-gtk
+ --with-gtk \
+ --disable-rpath \
+ --with-lua
make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
+
make DESTDIR=${pkgdir} install
}