python3.12: Fix sbopkglint
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Slackware build script Python 3.12
|
||||||
|
|
||||||
|
# Copyright 2025 Eugene Wissner, Mannheim, Germany
|
||||||
# Copyright 2012-2017 Audrius Kažukauskas <audrius@neutrino.lt>
|
# Copyright 2012-2017 Audrius Kažukauskas <audrius@neutrino.lt>
|
||||||
# Copyright 2017, 2018, 2019, 2023, 2024 Patrick J. Volkerding, Sebeka, MN, USA
|
# Copyright 2017, 2018, 2019, 2023, 2024 Patrick J. Volkerding, Sebeka, MN, USA
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
@@ -42,7 +45,7 @@ fi
|
|||||||
# the name of the created package would be, and then exit. This information
|
# the name of the created package would be, and then exit. This information
|
||||||
# could be useful to other scripts.
|
# could be useful to other scripts.
|
||||||
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
||||||
echo "$PRGNAM-$VERSION-$ARCH-$BUILD.txz"
|
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -129,14 +132,6 @@ find $PKG \( -name '*.exe' -o -name '*.bat' \) -exec rm -f '{}' \+
|
|||||||
# Fix permissions on dynamic libraries.
|
# Fix permissions on dynamic libraries.
|
||||||
find $PKG -type f -perm 555 -exec chmod 755 '{}' \+
|
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.
|
# Fix possible incorrect permissions.
|
||||||
( cd $PKG
|
( cd $PKG
|
||||||
find . -type d -exec chmod 755 "{}" \+
|
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 f -exec gzip -9 {} \+
|
||||||
find $PKG/usr/man -type l -delete
|
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
|
mkdir -p $PKG/install
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user