academic/siril: Updated for version 1.0.0_rc2, switch to meson.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2022-02-27 23:19:44 +01:00 committed by Robby Workman
parent 248ad7bb1b
commit 17d3b580d3
3 changed files with 28 additions and 23 deletions

View File

@ -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.

View File

@ -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

View File

@ -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"