Skip to content

Commit

Permalink
stellarium: add version 0.22.2
Browse files Browse the repository at this point in the history
Build with Qt 5.15.5
  • Loading branch information
thomas committed Jul 20, 2022
1 parent 293a9dc commit e994abb
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions stellarium-0.22.2-0.build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#! /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

0 comments on commit e994abb

Please sign in to comment.