diff options
author | Hunter Sezen <orbea@fredslev.dk> | 2018-04-02 19:52:05 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-04-07 08:13:09 +0700 |
commit | d45c2adb03ff75bfc9b9b40766abbc72d519a1a1 (patch) | |
tree | b10f7dc60926e45797d1df08a2c8d2d1ce89edd0 /system/wiimms-iso-tools/wiimms-iso-tools.SlackBuild | |
parent | 5f4ce58db43c0c52156746601868a966f34f9713 (diff) |
system/wiimms-iso-tools: Updated for version 3.01a.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/wiimms-iso-tools/wiimms-iso-tools.SlackBuild')
-rw-r--r-- | system/wiimms-iso-tools/wiimms-iso-tools.SlackBuild | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/system/wiimms-iso-tools/wiimms-iso-tools.SlackBuild b/system/wiimms-iso-tools/wiimms-iso-tools.SlackBuild index 0976a50ecb80d..a5d51c87dde42 100644 --- a/system/wiimms-iso-tools/wiimms-iso-tools.SlackBuild +++ b/system/wiimms-iso-tools/wiimms-iso-tools.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for Wiimms ISO Tools # # Copyright 2010-2011 Marco Bonetti <sid77@slackware.it> -# Copyright 2015 Hunter Sezen California, USA +# Copyright 2015, 2018 Hunter Sezen California, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,13 +24,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=wiimms-iso-tools -VERSION=${VERSION:-0.31a} +VERSION=${VERSION:-3.01a} 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 @@ -41,14 +41,28 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -set -e +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -eu rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 -cd $PRGNAM +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz +cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -56,10 +70,12 @@ 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 {} \; -make +patch -p0 < $CWD/cflags.diff + +make CFLAGS="$SLKCFLAGS" # Fix the install directory -sed -i "s|usr/local|$PKG/usr|" templates.sed +sed -i "s|/usr/local|$PKG/usr|" templates.sed make install @@ -67,7 +83,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a WDF.txt $PKG/usr/doc/$PRGNAM-$VERSION/ +cp -a gpl-2.0.txt $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |