diff options
Diffstat (limited to 'libraries/libunicapgtk/libunicapgtk.SlackBuild')
-rw-r--r-- | libraries/libunicapgtk/libunicapgtk.SlackBuild | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/libraries/libunicapgtk/libunicapgtk.SlackBuild b/libraries/libunicapgtk/libunicapgtk.SlackBuild index d3ec6e4d10..1dedcd03f6 100644 --- a/libraries/libunicapgtk/libunicapgtk.SlackBuild +++ b/libraries/libunicapgtk/libunicapgtk.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for libunicapgtk -# Copyright 2015 Philip Lacroix <slackph at posteo dot de> +# Copyright 2015-2017 Philip Lacroix <slackph at posteo dot de> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,15 +23,17 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=libunicapgtk -SRCNAM=unicap -VERSION=${VERSION:-20150328} -SRCVERSION=${SRCVERSION:-2c600aef122e1b82d7ff08c176663db181f8d002} +VERSION=${VERSION:-20160609} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +# Source name and ID (GitHub). +SRCNAM=unicap +SRCVER=${SRCVER:-66f0e778cc6d8586d48e8e40ae34b47261972453} + 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 +44,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" @@ -61,17 +63,10 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $SRCNAM-$SRCVERSION - -# The upstream tarball will be named differently, depending on -# the file being downloaded manually (web browser) or with wget. -if [ -e $CWD/$SRCVERSION.tar.gz ]; then - tar xvzf $CWD/$SRCVERSION.tar.gz -else - tar xvzf $CWD/$SRCNAM-$SRCVERSION.tar.gz -fi +rm -rf $SRCNAM-$SRCVER +tar xvzf $CWD/$SRCNAM-$SRCVER.tar.gz -cd $SRCNAM-$SRCVERSION/$PRGNAM +cd $SRCNAM-$SRCVER/$PRGNAM chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -79,7 +74,7 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# Prepare files needed for configuration and building. +# Prepare for configuration and building. autoreconf --force --install intltoolize |