From 50f873967a2fad166a7c7808eeca7eb2b26032d2 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 20 Apr 2022 00:29:55 -0400 Subject: libraries/libtorrent: Fix docs. Signed-off-by: B. Watson --- libraries/libtorrent/libtorrent.SlackBuild | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'libraries/libtorrent') diff --git a/libraries/libtorrent/libtorrent.SlackBuild b/libraries/libtorrent/libtorrent.SlackBuild index b4aa1a3a9a..27f12b712e 100644 --- a/libraries/libtorrent/libtorrent.SlackBuild +++ b/libraries/libtorrent/libtorrent.SlackBuild @@ -4,11 +4,15 @@ # Written by Tom Fitzhenry 2007/08/22 # Updated by Andrew Brouwers, abrouwers@gmail.com +# 20220420 bkw: Modified by SlackBuilds.org, BUILD=2: +# - name SlackBuild *correctly* in the doc dir. +# - get rid of useless INSTALL from doc dir. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libtorrent VERSION=${VERSION:-0.13.7} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -20,9 +24,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -57,9 +58,9 @@ cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ + -o -perm 511 \) -exec chmod 755 {} \+ -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ # Added OpenSSL 1.1 support. patch -p1 < $CWD/4607bbf7.patch @@ -76,15 +77,12 @@ CXXFLAGS="$SLKCFLAGS" \ --build=$ARCH-slackware-linux make -make install DESTDIR=$PKG +make install-strip DESTDIR=$PKG mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING INSTALL NEWS README $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING NEWS README $PKG/usr/doc/$PRGNAM-$VERSION find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \; -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM-SlackBuild - -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild rm -f $PKG/usr/lib*/*.la -- cgit v1.2.3-65-gdbad