You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
slackbuilds/l/rubberband/rubberband.SlackBuild

135 lines
3.5 KiB
Plaintext

#!/bin/bash
# Build script for Slackware
WGET=${WGET:-http://code.breakfastquay.com/attachments/download/34/$ARCHIVE}
# 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\|64\)-bit LSB" | cut -d : -f 1 | \
xargs strip --strip-unneeded 2> /dev/null
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 CHANGELOG COPYING README.txt $PKG/usr/doc/$NAME
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc