aboutsummaryrefslogtreecommitdiff
path: root/system/slapt-src/slapt-src.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/slapt-src/slapt-src.SlackBuild')
-rw-r--r--system/slapt-src/slapt-src.SlackBuild18
1 files changed, 12 insertions, 6 deletions
diff --git a/system/slapt-src/slapt-src.SlackBuild b/system/slapt-src/slapt-src.SlackBuild
index d56c770420..3b0a16f4f6 100644
--- a/system/slapt-src/slapt-src.SlackBuild
+++ b/system/slapt-src/slapt-src.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for slapt-src
-# Copyright 2023 Vijay Marcel
+# Copyright 2023-2025 Vijay Marcel
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,10 +22,18 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# Changelog for slapt-src SlackBuild Script
+# ----------------------------------------------------------------------------
+
+# 24/05/2023: Submitted to slackbuilds.org
+# 14/04/2025: updated to version 0.3.9
+
+# -----------------------------------------------------------------------------
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=slapt-src
-VERSION=${VERSION:-0.3.7}
+VERSION=${VERSION:-0.3.9}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -39,9 +47,6 @@ aarch64*) ARCH=aarch64 ;;
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
@@ -66,6 +71,7 @@ else
fi
set -e
+trap 'echo "$0 FAILED at line $LINENO!" | tee -a $OUTPUT/error-${PRGNAM}.log' ERR
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -85,7 +91,7 @@ ninja -C build
DESTDIR=$PKG ninja -C build install
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
+ | cut -f 1 -d : | xargs strip --strip-unneeded --remove-section=.comment --remove-section=.note 2> /dev/null || true
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done