diff options
author | B. Watson <yalhcru@gmail.com> | 2017-03-20 22:55:03 -0400 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2017-03-25 13:27:53 +0000 |
commit | dae800c2d314a428d9d9339752f6f1158930fd08 (patch) | |
tree | eefa05a0fb568a53c21959447554d36a75bbfcea /audio/pmidi | |
parent | 9d35af904116c871f5e89d3bfc4d19f116ff8e8e (diff) | |
download | slackbuilds-dae800c2d314a428d9d9339752f6f1158930fd08.tar.gz |
audio/pmidi: Allow VERSION override, i486=>i586.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'audio/pmidi')
-rw-r--r-- | audio/pmidi/pmidi.SlackBuild | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/audio/pmidi/pmidi.SlackBuild b/audio/pmidi/pmidi.SlackBuild index 552fd398d5..4457dc909f 100644 --- a/audio/pmidi/pmidi.SlackBuild +++ b/audio/pmidi/pmidi.SlackBuild @@ -24,14 +24,14 @@ # Modified by the SlackBuilds.org project -PKGNAME=pmidi -VERSION=1.6.0 +PRGNAM=pmidi +VERSION=${VERSION:-1.6.0} 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 @@ -39,11 +39,11 @@ fi CWD=$(pwd) TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PKGNAME +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" @@ -59,9 +59,9 @@ fi rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP || exit 1 -rm -rf $PKGNAME-$VERSION -tar -xvzf $CWD/$PKGNAME-$VERSION.tar.gz || exit 1 -cd $PKGNAME-$VERSION || exit 1 +rm -rf $PRGNAM-$VERSION +tar -xvzf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 +cd $PRGNAM-$VERSION || exit 1 chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -81,10 +81,10 @@ CXXFLAGS="$SLKCFLAGS" \ make || exit 1 make install-strip DESTDIR=$PKG || exit 1 -mkdir -p $PKG/usr/doc/$PKGNAME-$VERSION +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README \ - $PKG/usr/doc/$PKGNAME-$VERSION -cat $CWD/$PKGNAME.SlackBuild > $PKG/usr/doc/$PKGNAME-$VERSION/$PKGNAME.SlackBuild + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild ( cd $PKG/usr/man find . -type f -exec gzip -9 {} \; @@ -95,4 +95,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PKGNAME-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |