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 36 lines (27 sloc) 992 Bytes
#! /bin/sh
set -xe
# https://github.com/Stellarium/stellarium/releases/download/v0.19.2/stellarium-0.19.2.tar.gz
PKG=stellarium
VERSION=0.19.2
SRC=https://github.com/Stellarium/stellarium/releases/download/v$VERSION/stellarium-$VERSION.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)
make install
exit