diff options
author | Alan Alberghini <414N@slacky.it> | 2023-04-30 20:16:06 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-05-06 08:28:22 +0700 |
commit | 4f8065c52efde69571f5809a444d390a0cfa5230 (patch) | |
tree | 6c833f16280ace8dbad41ba851f12be9feddfca3 /academic | |
parent | c04f023724fd22b2dc013b85e6e830a531754df6 (diff) |
academic/stellarium: Updated for version 23.1.
Signed-off-by: bedlam <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic')
-rw-r--r-- | academic/stellarium/stellarium.SlackBuild | 62 | ||||
-rw-r--r-- | academic/stellarium/stellarium.info | 14 |
2 files changed, 62 insertions, 14 deletions
diff --git a/academic/stellarium/stellarium.SlackBuild b/academic/stellarium/stellarium.SlackBuild index 6bb00fb4d966..c1d6344314ea 100644 --- a/academic/stellarium/stellarium.SlackBuild +++ b/academic/stellarium/stellarium.SlackBuild @@ -25,8 +25,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=stellarium -VERSION=${VERSION:-0.21.0} -BUILD=${BUILD:-1} +VERSION=${VERSION:-23.1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -69,8 +69,8 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -79,25 +79,65 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -mkdir build && cd build - cmake -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ +# CPM dependency retrieval lifting: prepare a cache dir in the format +# expected by CPM with pre-downloaded sources. + +# CPM normally puts downloaded deps under this dir +CPM_CACHE_DIR=$TMP/$PRGNAM-$VERSION/build/_deps + +CPM_SHOWMYSKY_VERSION=0fb93ef8e602c463f167f7727d4d80382033caca +CPM_QXSLX_VERSION=1.4.5 +CPM_INDI_VERSION=1.8.5 +CPM_GLM_VERSION=0.9.9.8 + +# We need to match dependencies names used in cmake files with the +# actual dependency tarball names +declare -A CPM_SOURCE CPM_DEST +CPM_SOURCE["SHOWMYSKY"]="$CWD/CalcMySky-$CPM_SHOWMYSKY_VERSION.tar.gz" +CPM_SOURCE["QXLSX"]="$CWD/QXlsx-$CPM_QXSLX_VERSION.tar.gz" +CPM_SOURCE["INDI"]="$CWD/indi-$CPM_INDI_VERSION.zip" +CPM_SOURCE["GLM"]="$CWD/glm-$CPM_GLM_VERSION.7z" +CPM_DEST["SHOWMYSKY"]="$CPM_CACHE_DIR/showmysky-qt5-subbuild/showmysky-qt5-populate-prefix/src/$CPM_SHOWMYSKY_VERSION.tar.gz" +CPM_DEST["QXLSX"]="$CPM_CACHE_DIR/qxlsxqt5-subbuild/qxlsxqt5-populate-prefix/src/v$CPM_QXSLX_VERSION.tar.gz" +CPM_DEST["INDI"]="$CPM_CACHE_DIR/indiclient-subbuild/indiclient-populate-prefix/src/v$CPM_INDI_VERSION.zip" +CPM_DEST["GLM"]="$CPM_CACHE_DIR/glm-subbuild/glm-populate-prefix/src/glm-$CPM_GLM_VERSION.7z" + +for dep in "${!CPM_SOURCE[@]}" +do + mkdir -p "$(dirname "${CPM_DEST[$dep]}")" + ln -s "${CPM_SOURCE[$dep]}" "${CPM_DEST[$dep]}" +done + +# End of CPM deps management + +mkdir -p build +cd build + cmake \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_BUILD_TYPE="release" \ - .. + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib${LIBDIRSUFFIX} \ + -DCMAKE_INSTALL_MANDIR=/usr/man \ + -DCMAKE_BUILD_TYPE=Release .. make make install DESTDIR=$PKG cd - +# Don't ship .la files: +rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la + find $PKG -print0 | xargs -0 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 +# upstream doesn't honor the CMAKE_INSTALL_MANDIR. Move files manually, for now +mv $PKG/usr/share/man $PKG/usr/ 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/doc/$PRGNAM-$VERSION -cp -a CREDITS.md COPYING ChangeLog README.md $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + CREDITS.md COPYING ChangeLog README.md \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/academic/stellarium/stellarium.info b/academic/stellarium/stellarium.info index 7ff88d8138b8..5dc7c2445544 100644 --- a/academic/stellarium/stellarium.info +++ b/academic/stellarium/stellarium.info @@ -1,8 +1,16 @@ PRGNAM="stellarium" -VERSION="0.21.0" +VERSION="23.1" HOMEPAGE="http://www.stellarium.org" -DOWNLOAD="https://github.com/Stellarium/stellarium/releases/download/v0.21.0/stellarium-0.21.0.tar.gz" -MD5SUM="333646917111ffc31692aa4f316cbc26" +DOWNLOAD="https://github.com/Stellarium/stellarium/releases/download/v23.1/stellarium-23.1.tar.xz \ +https://github.com/10110111/CalcMySky/archive/0fb93ef8e602c463f167f7727d4d80382033caca/CalcMySky-0fb93ef8e602c463f167f7727d4d80382033caca.tar.gz \ +https://github.com/QtExcel/QXlsx/archive/v1.4.5/QXlsx-1.4.5.tar.gz \ +https://github.com/indilib/indi/archive/v1.8.5/indi-1.8.5.zip \ +https://github.com/g-truc/glm/releases/download/0.9.9.8/glm-0.9.9.8.7z" +MD5SUM="ef30b1518ee11e2d6aec364e4533ee22 \ +cbde9d4d6e657ee0b1d4cce98e00a3e7 \ +1ad39475ce027febc7b556942aef3fea \ +14a092a9eb2117e5c51ba3302197e097 \ +c8342552801ebeb31497288192c4e793" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |