summaryrefslogtreecommitdiffstats
path: root/source/d
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2021-10-12 19:22:20 +0000
committer Eric Hameleers <alien@slackware.com>2021-10-13 08:59:43 +0200
commit3e4907157f8f424eb08e8f8c53cd9250f85f6a53 (patch)
treef7f8c877c1cd577e8c24847de240b88384ae2a88 /source/d
parent6e28b639e2663f0309e7c87b030f5f216fa193db (diff)
downloadcurrent-3e4907157f8f424eb08e8f8c53cd9250f85f6a53.tar.gz
current-3e4907157f8f424eb08e8f8c53cd9250f85f6a53.tar.xz
Tue Oct 12 19:22:20 UTC 202120211012192220
a/kernel-firmware-20211012_b563148-noarch-1.txz: Upgraded. a/mkinitrd-1.4.11-x86_64-26.txz: Rebuilt. Don't include 40-usb_modeswitch.rules on the initrd. Thanks to LuckyCyborg. d/scons-4.2.0-x86_64-1.txz: Upgraded. l/python-charset-normalizer-2.0.7-x86_64-1.txz: Upgraded. xfce/mousepad-0.5.7-x86_64-2.txz: Rebuilt. Added plugins directory. Thanks to Roman Dyaba.
Diffstat (limited to 'source/d')
-rwxr-xr-xsource/d/scons/scons.SlackBuild34
1 files changed, 20 insertions, 14 deletions
diff --git a/source/d/scons/scons.SlackBuild b/source/d/scons/scons.SlackBuild
index ec0d5a8ad..bc12ba5fe 100755
--- a/source/d/scons/scons.SlackBuild
+++ b/source/d/scons/scons.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright 2015, 2018, 2020 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2015, 2018, 2020, 2021 Patrick J. Volkerding, Sebeka, MN, USA
# Copyright 2015 Heinz Wiesinger, Amsterdam, The Netherlands
# All rights reserved.
#
@@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=scons
VERSION=${VERSION:-$(echo scons-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-5}
+BUILD=${BUILD:-1}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
@@ -87,6 +87,12 @@ rm -f $PKG/usr/bin/*.bat
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+# Relocate manual pages:
+if [ -r $PKG/usr/scons.1 ]; then
+ mkdir -p $PKG/usr/man/man1
+ mv $PKG/usr/*.1 $PKG/usr/man/man1
+fi
+
# Compress manual pages:
find $PKG/usr/man -type f -exec gzip -9 {} \+
for i in $( find $PKG/usr/man -type l ) ; do
@@ -94,18 +100,18 @@ for i in $( find $PKG/usr/man -type l ) ; do
rm $i
done
-# For some reason, SCons no longer ships a man page. If there is not a man page
-# present, install the last known version. It's better than nothing.
-if [ ! -r $PKG/usr/man/man1/scons.1.gz ]; then
- mkdir -p $PKG/usr/man/man1
- cp -a $CWD/scons.1.gz $PKG/usr/man/man1
- chown root:root $PKG/usr/man/man1/scons.1.gz
- chmod 644 $PKG/usr/man/man1/scons.1.gz
-else
- echo "ERROR: actually found scons man page! Please comment out the section of"
- echo "the build script that tries to install it, and delete the old man page."
- exit 1
-fi
+## For some reason, SCons no longer ships a man page. If there is not a man page
+## present, install the last known version. It's better than nothing.
+#if [ ! -r $PKG/usr/man/man1/scons.1.gz ]; then
+# mkdir -p $PKG/usr/man/man1
+# cp -a $CWD/scons.1.gz $PKG/usr/man/man1
+# chown root:root $PKG/usr/man/man1/scons.1.gz
+# chmod 644 $PKG/usr/man/man1/scons.1.gz
+#else
+# echo "ERROR: actually found scons man page! Please comment out the section of"
+# echo "the build script that tries to install it, and delete the old man page."
+# exit 1
+#fi
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/
cp -a \