diff options
author | Hunter Sezen <ovariegata@yahoo.com> | 2017-09-07 21:59:59 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-09-09 06:56:16 +0700 |
commit | 3519f9f5c56bc484435beea87ec8f18be09fa4ef (patch) | |
tree | 81dadd99301a7edd5c037e48e180105f385a24bb /libraries/CoinMP/CoinMP.SlackBuild | |
parent | b17360db0263ba26f303a6dd0ced808ac26aef54 (diff) | |
download | slackbuilds-3519f9f5c56bc484435beea87ec8f18be09fa4ef.tar.gz |
libraries/CoinMP: Fix path.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/CoinMP/CoinMP.SlackBuild')
-rw-r--r-- | libraries/CoinMP/CoinMP.SlackBuild | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/libraries/CoinMP/CoinMP.SlackBuild b/libraries/CoinMP/CoinMP.SlackBuild index e5c6fc7896..45774667f7 100644 --- a/libraries/CoinMP/CoinMP.SlackBuild +++ b/libraries/CoinMP/CoinMP.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for CoinMP -# Copyright 2015 Hunter Sezen California, USA +# Copyright 2015, 2017 Hunter Sezen California, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,12 +24,12 @@ PRGNAM=CoinMP VERSION=${VERSION:-1.8.3} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} 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 @@ -40,8 +40,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" @@ -54,7 +54,7 @@ else LIBDIRSUFFIX="" fi -set -e +set -eu rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT @@ -69,6 +69,9 @@ 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 {} \; +# Fix the $DESTDIR +zcat $CWD/destdir.diff.gz | patch -p1 + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -82,12 +85,8 @@ make install DESTDIR=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -# not sure why these are put here, but lets move them -mv $PKG$PKG/usr/share/coin/doc/CoinMP/* $PKG/usr/share/coin/doc/CoinMP -rm -rf $PKG/tmp - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS INSTALL LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION +mv $PKG/usr/share/coin/doc $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |