diff options
Diffstat (limited to 'misc/iscan-proprietary-drivers/iscan-proprietary-drivers.SlackBuild')
-rw-r--r-- | misc/iscan-proprietary-drivers/iscan-proprietary-drivers.SlackBuild | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/misc/iscan-proprietary-drivers/iscan-proprietary-drivers.SlackBuild b/misc/iscan-proprietary-drivers/iscan-proprietary-drivers.SlackBuild index c58343e7df..becb8b6d72 100644 --- a/misc/iscan-proprietary-drivers/iscan-proprietary-drivers.SlackBuild +++ b/misc/iscan-proprietary-drivers/iscan-proprietary-drivers.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for iscan-proprietary-drivers -# Copyright 2008 Simone Giustetti (studiosg@giustetti.net) +# Copyright 2008-2009 Simone Giustetti (studiosg@giustetti.net) # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,9 +23,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=iscan-proprietary-drivers -VERSION=2.8.0.1 -RPMBUILD=11 # <-- This is the build number used by OpenSuSE in their RPM -ARCH=${ARCH:-noarch} +VERSION=2.10.0.1 +ARCH=${ARCH:-i586} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -34,6 +33,15 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +if [ "$ARCH" = "x86_64" ]; then + RPMBUILD="1.3" + LIBDIRSUFFIX="64" +else + ARCH="i586" + RPMBUILD="1.4" # <-- This is the build number used by OpenSuSE in their RPM + LIBDIRSUFFIX="" +fi + set -e rm -rf $PKG @@ -42,7 +50,7 @@ cd $TMP rm -rf $PRGNAM-$VERSION mkdir $PRGNAM-$VERSION cd $PRGNAM-$VERSION -rpm2cpio $CWD/$PRGNAM-$VERSION-$RPMBUILD.i586.rpm | cpio -imdv +rpm2cpio $CWD/$PRGNAM-$VERSION-$RPMBUILD.$ARCH.rpm | cpio -imdv chown -R root:root . chmod -R u+w,go+r-w,a-s . cd usr/share @@ -55,12 +63,12 @@ cp -a doc/packages/iscan-proprietary-drivers/iscan-plugin-gt-f520-1.0.0/* \ cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -cd $TMP/$PRGNAM-$VERSION/usr/lib -mkdir -p $PKG/usr/lib/iscan -cp -a iscan/* $PKG/usr/lib/iscan +cd $TMP/$PRGNAM-$VERSION/usr/lib${LIBDIRSUFFIX} +mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/iscan +cp -a iscan/* $PKG/usr/lib${LIBDIRSUFFIX}/iscan mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |