aboutsummaryrefslogtreecommitdiff
path: root/libraries/libtorrent
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-20 00:29:55 -0400
committerB. Watson <yalhcru@gmail.com>2022-04-20 00:29:55 -0400
commit50f873967a2fad166a7c7808eeca7eb2b26032d2 (patch)
tree0d45c43c6ea14eff6606a7f90ea64e98c7bd2ff6 /libraries/libtorrent
parent9e0e420e1f5c22ffb73b975ca288f92539e5e560 (diff)
libraries/libtorrent: Fix docs.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'libraries/libtorrent')
-rw-r--r--libraries/libtorrent/libtorrent.SlackBuild22
1 files changed, 10 insertions, 12 deletions
diff --git a/libraries/libtorrent/libtorrent.SlackBuild b/libraries/libtorrent/libtorrent.SlackBuild
index b4aa1a3a9a67..27f12b712e08 100644
--- a/libraries/libtorrent/libtorrent.SlackBuild
+++ b/libraries/libtorrent/libtorrent.SlackBuild
@@ -4,11 +4,15 @@
# Written by Tom Fitzhenry <tom@fitzhenry.name> 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