diff options
Diffstat (limited to 'graphics/simple-scan/simple-scan.SlackBuild')
-rw-r--r-- | graphics/simple-scan/simple-scan.SlackBuild | 37 |
1 files changed, 7 insertions, 30 deletions
diff --git a/graphics/simple-scan/simple-scan.SlackBuild b/graphics/simple-scan/simple-scan.SlackBuild index c72239bd83119..f781cab523941 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 |