summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2025-11-03 19:06:59 +0100
committerEugen Wissner <belka@caraus.de>2025-11-03 19:06:59 +0100
commitd3472b43b3d41c0f41ace1eeefac3a0def924329 (patch)
tree2f059bc20677bd7181a6ca0ab0f5dbd5858f8f9e
parentca9c845e6b046186b323330aa6a2b7557a5ccfb8 (diff)
downloadslackbuilds-d3472b43b3d41c0f41ace1eeefac3a0def924329.tar.gz
python3.12: Fix sbopkglint
-rw-r--r--python3.12/python3.12.SlackBuild22
1 files changed, 13 insertions, 9 deletions
diff --git a/python3.12/python3.12.SlackBuild b/python3.12/python3.12.SlackBuild
index 87bc413..c676f3a 100644
--- a/python3.12/python3.12.SlackBuild
+++ b/python3.12/python3.12.SlackBuild
@@ -1,5 +1,8 @@
#!/bin/bash
+# Slackware build script Python 3.12
+
+# Copyright 2025 Eugene Wissner, Mannheim, Germany
# Copyright 2012-2017 Audrius Kažukauskas <audrius@neutrino.lt>
# Copyright 2017, 2018, 2019, 2023, 2024 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
@@ -42,7 +45,7 @@ fi
# 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.txz"
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
fi
@@ -129,14 +132,6 @@ find $PKG \( -name '*.exe' -o -name '*.bat' \) -exec rm -f '{}' \+
# Fix permissions on dynamic libraries.
find $PKG -type f -perm 555 -exec chmod 755 '{}' \+
-# Install docs.
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a README.rst LICENSE Misc $PKG/usr/doc/$PRGNAM-$VERSION
-# Delete stuff that we don't need to package:
-rm -f $PKG/usr/doc/$PRGNAM-$VERSION/Misc/{HISTORY,*.in,*.wpr,python.man,svnmap.txt}
-mv $SITEPK/README $PKG/usr/doc/$PRGNAM-$VERSION/README.python-tools
-( cd $PKG/usr/doc/$PRGNAM-$VERSION ; ln -sf $TOOLSDIR Tools )
-
# Fix possible incorrect permissions.
( cd $PKG
find . -type d -exec chmod 755 "{}" \+
@@ -150,6 +145,15 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
find $PKG/usr/man -type f -exec gzip -9 {} \+
find $PKG/usr/man -type l -delete
+# Install docs.
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README.rst LICENSE Misc $PKG/usr/doc/$PRGNAM-$VERSION
+# Delete stuff that we don't need to package:
+rm -f $PKG/usr/doc/$PRGNAM-$VERSION/Misc/{HISTORY,*.in,*.wpr,python.man,svnmap.txt}
+mv $SITEPK/README $PKG/usr/doc/$PRGNAM-$VERSION/README.python-tools
+( cd $PKG/usr/doc/$PRGNAM-$VERSION ; ln -sf $TOOLSDIR Tools )
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc