summaryrefslogtreecommitdiff
path: root/extra/celestia/PKGBUILD
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2013-05-09 16:24:38 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2013-05-09 16:24:38 +0200
commitcdbd7308d16cb249715cce9bedf8b809f2576804 (patch)
treebfdb3a816cf96988dc788e2678acdb294b032811 /extra/celestia/PKGBUILD
parenta86ff663185661ee304bb1f6d00d982102dd706d (diff)
parent648599b08776ea788a3ddb0365eb30fda03efe7b (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/bwbar/PKGBUILD community/dosbox/PKGBUILD community/extremetuxracer/PKGBUILD community/fbgrab/PKGBUILD community/fbv/PKGBUILD community/flam3/PKGBUILD community/freedroidrpg/PKGBUILD community/gdk-pixbuf/PKGBUILD community/ghemical/PKGBUILD community/gmic/PKGBUILD community/gnash/PKGBUILD community/gnustep-base/PKGBUILD community/guvcview/PKGBUILD community/keepassx/PKGBUILD community/kvpnc/PKGBUILD community/libghemical/PKGBUILD community/liboglappth/PKGBUILD community/png2ico/PKGBUILD community/shapelib/PKGBUILD community/sloccount/PKGBUILD community/tmw/PKGBUILD community/xmoto/PKGBUILD core/links/PKGBUILD extra/amule/PKGBUILD extra/cairomm/PKGBUILD extra/calligra/PKGBUILD extra/evas/PKGBUILD extra/fltk/PKGBUILD extra/gd/PKGBUILD extra/gif2png/PKGBUILD extra/glhack/PKGBUILD extra/graphviz/PKGBUILD extra/gstreamer0.10-good/PKGBUILD extra/imlib/PKGBUILD extra/imlib2/PKGBUILD extra/lbreakout2/PKGBUILD extra/libgdiplus/PKGBUILD extra/libkate/PKGBUILD extra/libpano13/PKGBUILD extra/libwebp/PKGBUILD extra/libwmf/PKGBUILD extra/libxslt/PKGBUILD extra/mjpegtools/PKGBUILD extra/ntp/PKGBUILD extra/nx/PKGBUILD extra/openjpeg/PKGBUILD extra/php/PKGBUILD extra/plotutils/PKGBUILD extra/poppler/PKGBUILD extra/qrencode/PKGBUILD extra/qt4/PKGBUILD extra/qt5/PKGBUILD extra/qtiplot/PKGBUILD extra/qtwebkit/PKGBUILD extra/samba/PKGBUILD extra/sdl_image/PKGBUILD extra/vice/PKGBUILD extra/vigra/PKGBUILD extra/vlc/PKGBUILD extra/webkitgtk/PKGBUILD extra/webkitgtk2/PKGBUILD extra/wv/PKGBUILD extra/wxgtk/PKGBUILD extra/xaos/PKGBUILD extra/xsane/PKGBUILD extra/zvbi/PKGBUILD
Diffstat (limited to 'extra/celestia/PKGBUILD')
-rw-r--r--extra/celestia/PKGBUILD30
1 files changed, 20 insertions, 10 deletions
diff --git a/extra/celestia/PKGBUILD b/extra/celestia/PKGBUILD
index ad85cb082..589080733 100644
--- a/extra/celestia/PKGBUILD
+++ b/extra/celestia/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 173170 2012-12-12 00:31:40Z eric $
+# $Id: PKGBUILD 184365 2013-05-06 19:36:48Z foutrelis $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor : Damir Perisa <damir.perisa@bluewin.ch>
pkgname=celestia
pkgver=1.6.1
-pkgrel=4
+pkgrel=5
pkgdesc="Real-time space simulation"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
@@ -12,33 +12,43 @@ url="http://www.shatters.net/celestia/"
depends=('gtk2' 'libtheora' 'lua51' 'gtkglext' 'glut' 'libxmu' 'glu' 'libjpeg' 'mesa')
options=('!makeflags')
source=("http://downloads.sourceforge.net/sourceforge/celestia/${pkgname}-${pkgver}.tar.gz"
- 'celestia-1.6.1-gcc46.patch'
+ 'celestia-1.6.1-gcc46.patch'
'celestia-1.6.1-libpng15.patch'
+ 'celestia-1.6.1-libpng16.patch'
'celestia-1.6.1-linking.patch'
'gcc-4.7-fixes.diff')
sha1sums=('1f0fdf4525a8b9d6c708e1f6383babed670d18e7'
'7c08ca391603806d788cb8f3342acedafc924eef'
'46ecc4e10b24191384bc848c206652498843adf0'
+ '6f357bd319cdac0776206726e0743b90d4d8127b'
'534c8eee18d13a868c91f0b870ebecc05f3e7ae1'
'582f9eed93eca02a16350f02c29e2ea6f69aa869')
-build() {
+prepare() {
cd ${srcdir}/${pkgname}-${pkgver}
# build patch
patch -Np0 -i "${srcdir}/celestia-1.6.1-gcc46.patch"
patch -Np0 -i "${srcdir}/celestia-1.6.1-libpng15.patch"
+ patch -Np2 -i "${srcdir}/celestia-1.6.1-libpng16.patch"
patch -Np1 -i "${srcdir}/celestia-1.6.1-linking.patch"
patch -Np1 -i "${srcdir}/gcc-4.7-fixes.diff"
- # 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"
+ sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.in
+
+ autoreconf -vi
+}
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ # This version of Celestia has a bug in the font rendering and requires -fsigned-char
+ CFLAGS+=' -fsigned-char'
+ CXXFLAGS+=' -fsigned-char'
- autoreconf
./configure --prefix=/usr \
--with-lua=/usr \
- --datadir=/usr/share \
+ --datadir=/usr/share \
--with-gtk \
--disable-rpath \
--with-lua
@@ -48,6 +58,6 @@ build() {
package() {
cd ${srcdir}/${pkgname}-${pkgver}
- make DESTDIR=${pkgdir} install
+ make DESTDIR=${pkgdir} MKDIR_P='mkdir -p' install
}