diff options
Diffstat (limited to 'academic/stellarium')
-rw-r--r-- | academic/stellarium/stellarium.SlackBuild | 28 | ||||
-rw-r--r-- | academic/stellarium/stellarium.info | 6 |
2 files changed, 22 insertions, 12 deletions
diff --git a/academic/stellarium/stellarium.SlackBuild b/academic/stellarium/stellarium.SlackBuild index 0fca26d0a4..0b98950b81 100644 --- a/academic/stellarium/stellarium.SlackBuild +++ b/academic/stellarium/stellarium.SlackBuild @@ -23,11 +23,20 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=stellarium -VERSION=0.10.2 -ARCH=${ARCH:-i486} +VERSION=0.10.4 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) export ARCH=i486 ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$( uname -m ) ;; + esac +fi + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -39,12 +48,12 @@ if [ "$ARCH" = "i486" ]; then elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" LIBDIRSUFFIX="" -elif [ "$ARCH" = "athlonxp" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=athlon-xp" - LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e @@ -60,10 +69,10 @@ chmod -R a-s,u+w,go+r-w . mkdir build && cd build cmake -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DLIB_SUFFIX="$LIBDIRSUFFIX" \ - -DCMAKE_BUILD_TYPE="release" \ + -DCMAKE_BUILD_TYPE="release" \ .. make make install DESTDIR=$PKG @@ -73,7 +82,8 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mv $PKG/usr/share/man $PKG/usr -gzip -9 $PKG/usr/man/man?/*.? +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/share/{applications,pixmaps} cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop diff --git a/academic/stellarium/stellarium.info b/academic/stellarium/stellarium.info index b987389c57..accab926a5 100644 --- a/academic/stellarium/stellarium.info +++ b/academic/stellarium/stellarium.info @@ -1,8 +1,8 @@ PRGNAM="stellarium" -VERSION="0.10.2" +VERSION="0.10.4" HOMEPAGE="http://www.stellarium.org" -DOWNLOAD="http://downloads.sourceforge.net/stellarium/stellarium-0.10.2.tar.gz" -MD5SUM="c544fff9e75e9317055075b658ae5924" +DOWNLOAD="http://downloads.sourceforge.net/stellarium/stellarium-0.10.4.tar.gz" +MD5SUM="ebb81f609c91be6ecd7e91cf7d3a4afa" DOWNLOAD_x86_64="" MD5SUM_x86_64="" MAINTAINER="Alan Alberghini" |