summaryrefslogtreecommitdiff
path: root/academic/celestia
diff options
context:
space:
mode:
Diffstat (limited to 'academic/celestia')
-rw-r--r--academic/celestia/celestia.SlackBuild14
-rw-r--r--academic/celestia/celestia.info8
2 files changed, 15 insertions, 7 deletions
diff --git a/academic/celestia/celestia.SlackBuild b/academic/celestia/celestia.SlackBuild
index a36a6673b7..ce7ba55f81 100644
--- a/academic/celestia/celestia.SlackBuild
+++ b/academic/celestia/celestia.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=celestia
-VERSION=1.5.0
+VERSION=1.5.1
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -37,6 +37,8 @@ if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
set -e
@@ -48,7 +50,11 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
-chmod -R u+w,go+r-w,a-s .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
# Celestia can only be built with one frontend enabled. The
# Default one is kde, but you are free to choose glut, gtk and
@@ -61,7 +67,9 @@ CXXFLAGS="$SLKCFLAGS" \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
- --with-$FRONTEND
+ --with-$FRONTEND \
+ --build=$ARCH-slackware-linux \
+ --host=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
diff --git a/academic/celestia/celestia.info b/academic/celestia/celestia.info
index ecc48ee53f..3c0638f6fb 100644
--- a/academic/celestia/celestia.info
+++ b/academic/celestia/celestia.info
@@ -1,8 +1,8 @@
PRGNAM="celestia"
-VERSION="1.5.0"
+VERSION="1.5.1"
HOMEPAGE="http://www.shatters.net/celestia/"
-DOWNLOAD="http://downloads.sourceforge.net/celestia/celestia-1.5.0.tar.gz"
-MD5SUM="156bc1080d27906122945a20d84d4a82"
+DOWNLOAD="http://downloads.sourceforge.net/celestia/celestia-1.5.1.tar.gz"
+MD5SUM="df6854a2cf62d2e96612398c13b68fd2"
MAINTAINER="ppr:kut"
EMAIL="HMWiesinger@gmx.at"
-APPROVED="rworkman"
+APPROVED="David Somero"