From 17d3b580d34930bea3a453fdca1c2de2c485e429 Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Sun, 27 Feb 2022 23:19:44 +0100 Subject: academic/siril: Updated for version 1.0.0_rc2, switch to meson. Signed-off-by: Matteo Bernardini --- academic/siril/README | 2 ++ academic/siril/siril.SlackBuild | 43 ++++++++++++++++++++++------------------- academic/siril/siril.info | 6 +++--- 3 files changed, 28 insertions(+), 23 deletions(-) (limited to 'academic/siril') diff --git a/academic/siril/README b/academic/siril/README index 9d75056201..bdd99c4b52 100644 --- a/academic/siril/README +++ b/academic/siril/README @@ -5,3 +5,5 @@ reduction and improving the signal/noise ratio of an image from multiple captures as required in astronomy. SIRIL can align automatically or manually, stack and enhance pictures from various file formats, even images sequences (movies and SER files). + +libheif is an optional dependency. diff --git a/academic/siril/siril.SlackBuild b/academic/siril/siril.SlackBuild index 342d2be169..2da99a2d8e 100644 --- a/academic/siril/siril.SlackBuild +++ b/academic/siril/siril.SlackBuild @@ -25,7 +25,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=siril -VERSION=${VERSION:-0.9.6} +VERSION=${VERSION:-1.0.0_rc2} +SRCVER=$(echo $VERSION | tr _ - ) BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -69,9 +70,10 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-$SRCVER +mkdir -p $PRGNAM-$SRCVER +cd $PRGNAM-$SRCVER +tar xvf $CWD/$PRGNAM-$SRCVER.tar.bz2 chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -79,21 +81,21 @@ 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 {} \; -sh ./autogen.sh - -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --mandir=/usr/man \ - --docdir=/usr/doc/$PRGNAM-$VERSION \ - --build=$ARCH-slackware-linux - -make -make DESTDIR=$PKG install +mkdir compile +cd compile + CFLAGS="$SLKCFLAGS" \ + CXXFLAGS="$SLKCFLAGS" \ + meson .. \ + --buildtype=release \ + --infodir=/usr/info \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --localstatedir=/var \ + --mandir=/usr/man \ + --prefix=/usr \ + --sysconfdir=/etc \ + -Dstrip=true + DESTDIR=$PKG "${NINJA:=ninja}" install +cd .. 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 @@ -101,8 +103,9 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr 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 +rm -fR $PKG/usr/share/doc mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS README.md ChangeLog NEWS LICENSE COPYING $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS README.md ChangeLog NEWS LICENSE* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/academic/siril/siril.info b/academic/siril/siril.info index 68b04e4792..ad9558dc4d 100644 --- a/academic/siril/siril.info +++ b/academic/siril/siril.info @@ -1,8 +1,8 @@ PRGNAM="siril" VERSION="0.9.6" -HOMEPAGE="https://free-astro.org/index.php?title=Main_Page" -DOWNLOAD="https://free-astro.org/download/siril-0.9.6.tar.bz2" -MD5SUM="aaa649ba5a57738ab8fb8c4223ed83dd" +HOMEPAGE="https://siril.org" +DOWNLOAD="https://free-astro.org/download/siril-1.0.0-rc2.tar.bz2" +MD5SUM="764767e35ea835fe2206d2dadf79dee6" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="libconfig" -- cgit v1.2.3