summaryrefslogtreecommitdiffstats
path: root/graphics/scantailor-advanced/scantailor-advanced.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/scantailor-advanced/scantailor-advanced.SlackBuild')
-rw-r--r--graphics/scantailor-advanced/scantailor-advanced.SlackBuild16
1 files changed, 8 insertions, 8 deletions
diff --git a/graphics/scantailor-advanced/scantailor-advanced.SlackBuild b/graphics/scantailor-advanced/scantailor-advanced.SlackBuild
index 42809cd223..98f0bbdaf5 100644
--- a/graphics/scantailor-advanced/scantailor-advanced.SlackBuild
+++ b/graphics/scantailor-advanced/scantailor-advanced.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for scantailor-advanced
-# Copyright 2019, Alexander Verbovetsky, Moscow, Russia
+# Copyright 2019-2023, Alexander Verbovetsky, Moscow, Russia
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=scantailor-advanced
-VERSION=${VERSION:-20200531_3d1e74e}
+VERSION=${VERSION:-1.0.19}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +38,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# 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
@@ -70,8 +67,11 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
+
+sed -i '1a#include<algorithm>' src/foundation/Proximity.cpp
+
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -83,11 +83,11 @@ mkdir -p build
cd build
cmake -G "Unix Makefiles" \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -Wno-deprecated-declarations" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release ..
make
- make install DESTDIR=$PKG
+ make install/strip DESTDIR=$PKG
cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \