aboutsummaryrefslogtreecommitdiff
path: root/libraries/libtorrent-rasterbar
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-20 01:09:58 -0400
committerB. Watson <yalhcru@gmail.com>2022-04-20 01:09:58 -0400
commit63a8ee6586c4d82a89a9d422ddc0f918fe05463a (patch)
treec646a1440dcc4200043f51bcb845d9076013c70d /libraries/libtorrent-rasterbar
parent50f873967a2fad166a7c7808eeca7eb2b26032d2 (diff)
libraries/libtorrent-rasterbar: Fix PRINT_PACKAGE_NAME, strip.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'libraries/libtorrent-rasterbar')
-rw-r--r--libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild30
1 files changed, 16 insertions, 14 deletions
diff --git a/libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild b/libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild
index ce6ba14a51e99..6f0109e8d5f0b 100644
--- a/libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild
+++ b/libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild
@@ -23,17 +23,26 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220420 bkw: Modified by SlackBuilds.org, BUILD=3:
+# - fix PRINT_PACKAGE_NAME when ARCH not set in environment.
+# - strip python shared lib.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libtorrent-rasterbar
VERSION=${VERSION:-1.2.11}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-# 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 "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) export ARCH=i586 ;;
+ arm*) export ARCH=arm ;;
+ *) export ARCH=$( uname -m ) ;;
+ esac
+fi
+
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -43,14 +52,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) export ARCH=i586 ;;
- arm*) export ARCH=arm ;;
- *) export ARCH=$( uname -m ) ;;
- esac
-fi
-
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
@@ -76,9 +77,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 {} \+
# https://github.com/qbittorrent/qBittorrent/issues/6383#issuecomment-281535787
sed -i -e "s/+ target_specific(),/+ target_specific() + ['-std=c++14'],/" \
@@ -105,6 +106,7 @@ LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
make
make install-strip DESTDIR=$PKG
+strip $PKG/usr/lib*/python*/site-packages/*.so
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog NEWS docs/ tools/ \