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 31 lines (23 sloc) 699 Bytes
#! /bin/sh
set -xe
PKG=stellarium
VERSION=0.18.1
SRC=https://github.com/Stellarium/stellarium/releases/download/v$VERSION/stellarium-$VERSION.tar.gz
BUILD=0
PREFIX=/pkg/$PKG-$VERSION-$BUILD
mkdir -p $PREFIX
cat >$PREFIX/profile <<-EOF
PATH=$PREFIX/bin:\$PATH
EOF
source $PREFIX/profile
mkdir -p $PREFIX/build
cd $PREFIX/build
test -e stellarium-$VERSION.tar.gz || wget $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 1 # final barrier, inhibits 'closing' on success.