mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
academic/stellarium: Updated for version 10.4.
This commit is contained in:
parent
7321fbe203
commit
2a2a59a710
2 changed files with 22 additions and 12 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue