Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 35 lines (27 sloc) 1014 Bytes
#! /bin/sh
set -xe
PKG=stellarium
VERSION=0.22.2
# origin: https://github.com/Stellarium/stellarium/releases/download/v$VERSION/stellarium-$VERSION.tar.gz
SRC=https://beehive.molgen.mpg.de/2aafc25f5736b8b5d6d2bcf6d7c2d118/stellarium-0.22.2.tar.gz
BUILD=0
PATH=/bin:/usr/bin:/usr/sbin:/usr/local/bin
PREFIX=/pkg/$PKG-$VERSION-$BUILD
if [ -n "$TESTING" ]; then PREFIX=/dev/shm/$PKG-$VERSION-$BUILD ; fi
mkdir -p $PREFIX
cat >$PREFIX/profile <<-EOF
PATH=$PREFIX/bin:\$PATH
if [ -d $PREFIX/.compatlibs ]; then export LD_LIBRARY_PATH=$PREFIX/.compatlibs\${LD_LIBRARY_PATH:+:\$LD_LIBRARY_PATH} ; fi
EOF
source $PREFIX/profile
mkdir -p $PREFIX/build
cd $PREFIX/build
test -e stellarium-$VERSION.tar.gz || wget --no-verbose $SRC
test -d stellarium-$VERSION || tar -xf stellarium-$VERSION.tar.gz
mkdir -p stellarium-$VERSION/build
cd stellarium-$VERSION/build
export CMAKE_PREFIX_PATH=/usr/local/qt5/lib/cmake
cmake -DCMAKE_INSTALL_PREFIX=$PREFIX ..
nice -12 make -j $(( $(nproc) * 4 / 5 + 1 ))
make install
exit