summaryrefslogtreecommitdiff
path: root/academic/celestia/celestia.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <HMWiesinger@gmx.at>2010-05-11 22:21:33 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:21:33 +0200
commitb81553072a9ecb976a99c20ae58431ae73b4cfd4 (patch)
tree2a51b25fb61a85193d76f83c6c8b6879f37875bd /academic/celestia/celestia.SlackBuild
parent56e2c1e1386eb640ebf5cec6d1825acd6f26878e (diff)
downloadslackbuilds-b81553072a9ecb976a99c20ae58431ae73b4cfd4.tar.gz
academic/celestia: Updated for version 1.5.1
Diffstat (limited to 'academic/celestia/celestia.SlackBuild')
-rw-r--r--academic/celestia/celestia.SlackBuild14
1 files changed, 11 insertions, 3 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