summaryrefslogtreecommitdiff
path: root/graphics/simple-scan/simple-scan.SlackBuild
diff options
context:
space:
mode:
authorNishant Limbachia <nishant@mnspace.net>2016-08-27 01:15:48 +0700
committerDavid Spencer <idlemoor@slackbuilds.org>2016-08-28 00:22:40 +0100
commitb47d2963bfc90a0990e410b317903bf43cb1117c (patch)
treed81c5e88ccd2e8f1ab96ced741cf8d9f0720cb4f /graphics/simple-scan/simple-scan.SlackBuild
parent7ce92b77f65ced460ee1ab0db29add4f4e995ffb (diff)
downloadslackbuilds-b47d2963bfc90a0990e410b317903bf43cb1117c.tar.gz
graphics/simple-scan: Aded (simple scanning utility).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/simple-scan/simple-scan.SlackBuild')
-rw-r--r--graphics/simple-scan/simple-scan.SlackBuild49
1 files changed, 30 insertions, 19 deletions
diff --git a/graphics/simple-scan/simple-scan.SlackBuild b/graphics/simple-scan/simple-scan.SlackBuild
index c1a3533e04..88786c149c 100644
--- a/graphics/simple-scan/simple-scan.SlackBuild
+++ b/graphics/simple-scan/simple-scan.SlackBuild
@@ -3,7 +3,8 @@
# Slackware Package Build Script for simple-scan
# Home Page https://launchpad.net/simple-scan
-# Copyright (c) 2010-2011, Nishant Limbachia, Hoffman Estates, IL, USA (nishant _AT_ mnspace _DOT_ net)
+# Copyright (c) 2010-2016, Nishant Limbachia, Hoffman Estates, IL, USA
+# [nishant _AT_ mnspace _DOT_ net]
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,14 +25,14 @@
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-PRGNAM=simple-scan
-VERSION=${VERSION:-2.32.0.2}
+PRGNAM="simple-scan"
+VERSION=${VERSION:-3.21.90}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -42,8 +43,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -65,11 +66,24 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
cd $PRGNAM-$VERSION
chown -R root.root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 750 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -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
+
+LDFLAGS="-L/usr/lib$LIBDIRSUFFIX" \
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
@@ -77,27 +91,24 @@ CFLAGS="$SLKCFLAGS" \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--localstatedir=/var \
--mandir=/usr/man \
- --disable-scrollkeeper \
+ $colord_option \
+ $packagekit_option \
+ --disable-schemas-compile \
--build=$ARCH-slackware-linux
+make clean
make
make install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- AUTHORS ChangeLog COPYING INSTALL NEWS README \
- $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
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
-for i in $PKG/etc/gconf/schemas/* ; do
- echo "schema_install $(basename $i)" >> $PKG/install/doinst.sh
-done
-
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
-