Browse Source

l/rubberband: Updated for Slackware-13.0.

slackware-14.2
Damien Goutte-Gattat 13 years ago
parent
commit
760831576e
  1. 21
      l/rubberband/rubberband.SlackBuild

21
l/rubberband/rubberband.SlackBuild

@ -34,15 +34,16 @@ ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2}
WGET=${WGET:-http://breakfastquay.com/rubberband/files/$ARCHIVE}
# Build infos
NAMETGZ=${NAMETGZ:-rubberband}
BUILD=${BUILD:-1GGD}
NAMEPKG=${NAMEPKG:-rubberband}
BUILD=${BUILD:-2GGD}
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
@ -90,8 +91,18 @@ CXXFLAGS=$CPUOPT \
make -j $JOBS
make install DESTDIR=$PKG
# Remove static libraries
find $PKG/usr/lib -name '*.a' -delete
# On Slackware64, move libraries to the right place and fix pkgconfig
# (configure's --libdir is ignored by generated Makefiles)
if [ "x$ARCH" = xx86_64 ] ; then
mv $PKG/usr/lib $PKG/usr/lib64
sed -i 's/lib$/lib64/' $PKG/usr/lib64/pkgconfig/rubberband.pc
fi
# 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
@ -106,7 +117,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