Browse Source

xap/qtractor: Updated for Slackware-13.0.

slackware-14.2
Damien Goutte-Gattat 12 years ago
parent
commit
deaf1fd5dd
  1. 18
      xap/qtractor/qtractor.SlackBuild

18
xap/qtractor/qtractor.SlackBuild

@ -25,8 +25,8 @@
# Latest qtractor sourcecode is available at:
# <http://qtractor.sourceforge.net/>.
#
# Depends: l/qt4, ap/jack, l/libsndfile, l/liblrdf
# Recommends: l/dssi, l/librubberband
# Depends: ap/jack, l/libsndfile, l/liblrdf
# Recommends: l/dssi, l/rubberband
# Source package infos
NAMESRC=${NAMESRC:-qtractor}
@ -35,15 +35,16 @@ ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://downloads.sourceforge.net/qtractor/$ARCHIVE}
# Build infos
NAMETGZ=${NAMETGZ:-qtractor}
BUILD=${BUILD:-2GGD}
NAMEPKG=${NAMEPKG:-qtractor}
BUILD=${BUILD:-3GGD}
ARCH=${ARCH:-i486}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMETGZ}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
set -e # Quit if a command returns non-zero
@ -87,13 +88,12 @@ cd $NAME
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
--prefix=/usr \
--with-qt=$(readlink /usr/bin/qmake-qt4 | sed 's,/bin/qmake$,,')
--prefix=/usr
make -j $JOBS
make install DESTDIR=$PKG
# Strip binaries
find $PKG | xargs file | grep "ELF 32-bit LSB" | cut -d : -f 1 | \
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
xargs strip --strip-unneeded 2> /dev/null
# Install the documentation
@ -109,7 +109,7 @@ cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMETGZ-$VERSION-$ARCH-$BUILD.tgz
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
"

Loading…
Cancel
Save