summaryrefslogtreecommitdiffstats
path: root/graphics/simple-scan/simple-scan.SlackBuild
diff options
context:
space:
mode:
author Nishant Limbachia2017-12-31 18:38:19 +0100
committer Willy Sudiarto Raharjo2018-01-06 00:55:09 +0100
commitb3b6ddb42cdbedda60561866b8b015ec513bc8de (patch)
tree64fda5df6c0259cc06b919ca6d9f41e3286570ad /graphics/simple-scan/simple-scan.SlackBuild
parent5fbe4804e330e9930bb337defe740ce4426675ae (diff)
downloadslackbuilds-b3b6ddb42cdbedda60561866b8b015ec513bc8de.tar.gz
graphics/simple-scan: Updated for version 3.25.1.
Thanks to Andrew Clemons for the meson-0.44.0 fix. Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'graphics/simple-scan/simple-scan.SlackBuild')
-rw-r--r--graphics/simple-scan/simple-scan.SlackBuild37
1 files changed, 7 insertions, 30 deletions
diff --git a/graphics/simple-scan/simple-scan.SlackBuild b/graphics/simple-scan/simple-scan.SlackBuild
index c72239bd83..f781cab523 100644
--- a/graphics/simple-scan/simple-scan.SlackBuild
+++ b/graphics/simple-scan/simple-scan.SlackBuild
@@ -3,7 +3,7 @@
# Slackware Package Build Script for simple-scan
# Home Page https://launchpad.net/simple-scan
-# Copyright (c) 2010-2016, Nishant Limbachia, Hoffman Estates, IL, USA
+# Copyright (c) 2010-2017, Nishant Limbachia, Hoffman Estates, IL, USA
# [nishant _AT_ mnspace _DOT_ net]
# All rights reserved.
#
@@ -26,7 +26,7 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM="simple-scan"
-VERSION=${VERSION:-3.22.0.1}
+VERSION=${VERSION:-3.25.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -71,40 +71,17 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 640 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-if [ "${colord:-no}" = "no" ]; then
- colord_option="--disable-colord"
-else
- colord_option="--enable-colord"
-fi
-
-if [ "${packagekit:-no}" = "no" ]; then
- packagekit_option="--disable-packagekit"
-else
- packagekit_option="--enable-packagekit"
-fi
+meson --prefix $PKG/usr build
-LDFLAGS="-L/usr/lib$LIBDIRSUFFIX" \
-CFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --sysconfdir=/etc \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --localstatedir=/var \
- --mandir=/usr/man \
- $colord_option \
- $packagekit_option \
- --disable-schemas-compile \
- --build=$ARCH-slackware-linux
+# Fix for meson-0.44.0, thanks to Andrew Clemons
+sed -i 's,../src/src/,../src/,g' build/build.ninja
-make clean
-make
-make install-strip DESTDIR=$PKG
+ninja -C build all install
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING NEWS README* $PKG/usr/doc/$PRGNAM-$VERSION
-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
+mv $PKG/usr/share/man $PKG/usr/man
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc