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.

135 lines
3.5 KiB

# Build script for Slackware
# 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
# 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