diff options
author | Christopher Forrest <nyrednek@gmx.com> | 2010-05-13 00:20:44 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:20:44 +0200 |
commit | 3f4bc89bc4bacba3f4a5abdb8c5c9641e4b01ee4 (patch) | |
tree | 92a58d9322bd2350b6fffe00a15687e4cdd81e76 /audio/amSynth/amSynth.SlackBuild | |
parent | e98067e75fa94fa83d753fa01b5ce9ea39a8e98d (diff) |
audio/amSynth: Updated for version 1.2.2
Diffstat (limited to 'audio/amSynth/amSynth.SlackBuild')
-rw-r--r-- | audio/amSynth/amSynth.SlackBuild | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/audio/amSynth/amSynth.SlackBuild b/audio/amSynth/amSynth.SlackBuild index f0bceed0b9f2b..c66b565c240b3 100644 --- a/audio/amSynth/amSynth.SlackBuild +++ b/audio/amSynth/amSynth.SlackBuild @@ -25,10 +25,11 @@ # Modified by the SlackBuilds.org project PKGNAME=amSynth -VERSION=1.2.0 -ARCH=${ARCH:-i486} +VERSION=1.2.2 +ARCH=${ARCH:-x86_64} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PKGNAME @@ -36,16 +37,23 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP || exit 1 +cd $TMP rm -rf $PKGNAME-$VERSION -tar -xvzf $CWD/$PKGNAME-$VERSION.tar.gz || exit 1 -cd $PKGNAME-$VERSION || exit 1 +tar xvf $CWD/$PKGNAME-$VERSION.tar.gz +cd $PKGNAME-$VERSION chown -R root:root . chmod -R a-s,u+rw,go+r-w . @@ -53,14 +61,14 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ - --datarootdir=/usr/share/$PKGNAME \ --enable-static=no \ - || exit 1 + --build=$ARCH-slackware-linux -make || exit 1 -make install-strip DESTDIR=$PKG || exit 1 +make +make install-strip DESTDIR=$PKG mkdir -p $PKG/usr/doc/$PKGNAME-$VERSION cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README \ @@ -71,4 +79,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.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PKGNAME-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |