diff options
Diffstat (limited to 'graphics/nomacs/nomacs.SlackBuild')
-rw-r--r-- | graphics/nomacs/nomacs.SlackBuild | 34 |
1 files changed, 21 insertions, 13 deletions
diff --git a/graphics/nomacs/nomacs.SlackBuild b/graphics/nomacs/nomacs.SlackBuild index 2d471cc3b4..54e559d3d0 100644 --- a/graphics/nomacs/nomacs.SlackBuild +++ b/graphics/nomacs/nomacs.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for nomacs -# Copyright 2013-2018 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy +# Copyright 2013-2023 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,11 +22,14 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=nomacs -VERSION=${VERSION:-3.12} -PVERSION=${PVERSION:-3.12.0} +VERSION=${VERSION:-3.17.2287} +PVERSION=${PVERSION:-3.17.2285} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -36,7 +39,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -55,8 +65,6 @@ else LIBDIRSUFFIX="" fi -DOCS="Readme/COPYRIGHT Readme/LICENSE* Readme/README" - set -e rm -rf $PKG @@ -66,6 +74,7 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.?z cd $PRGNAM-$VERSION/ImageLounge tar xvf $CWD/$PRGNAM-plugins-$PVERSION.tar.?z +rm -fR plugins mv $PRGNAM-plugins-$PVERSION plugins cd .. chown -R root:root . @@ -75,8 +84,9 @@ 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 {} \; +zcat $CWD/quazip-1.0.0.patch.gz | patch -p1 || exit 1 + cd ImageLounge -patch -p0 < $CWD/opencv4.diff # Fix man pages and plugins installation path sed -i "s|share\/man|man|" cmake/UnixBuildTarget.cmake || exit 1 @@ -91,9 +101,7 @@ cd build -DLIB_SUFFIX=${LIBDIRSUFFIX} \ -DENABLE_QUAZIP=1 \ -DUSE_SYSTEM_QUAZIP=1 \ - -DENABLE_PAINT=0 \ - -DENABLE_THRESHOLD=1 \ - -DENABLE_TRANSFORM=0 \ + -DENABLE_TRANSLATIONS=1 \ -DCMAKE_BUILD_TYPE=Release .. make make install DESTDIR=$PKG @@ -106,7 +114,7 @@ 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 $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +cp -a license $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install @@ -114,4 +122,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |