diff options
Diffstat (limited to 'libraries/pymediainfo/pymediainfo.SlackBuild')
-rw-r--r-- | libraries/pymediainfo/pymediainfo.SlackBuild | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/libraries/pymediainfo/pymediainfo.SlackBuild b/libraries/pymediainfo/pymediainfo.SlackBuild index ff3d6927c0..add527a5e0 100644 --- a/libraries/pymediainfo/pymediainfo.SlackBuild +++ b/libraries/pymediainfo/pymediainfo.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for pymediainfo # Copyright 2014-2021 Dimitris Zlatanidis Orestiada, Greece -# Copyright 2023 Jeremy Hansen jebrhansen+SBo@gmail.com +# Copyright 2023-2025 Jeremy Hansen jebrhansen+SBo@gmail.com # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=pymediainfo -VERSION=${VERSION:-6.1.0} +VERSION=${VERSION:-7.0.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -64,14 +64,21 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; export SETUPTOOLS_SCM_PRETEND_VERSION=$VERSION +export PDM_BUILD_SCM_VERSION=$VERSION -python3 setup.py install --root=$PKG +# Requires wheel module, which doesn't show up in `pip freeze` but still works +sed -i 's|, "wheel>=0.42"||' pyproject.toml + +python3 -m build --wheel --no-isolation +python3 -m installer --destdir "$PKG" dist/*.whl 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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS LICENSE README.rst $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS LICENSE README.md \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |