diff options
Diffstat (limited to 'source/x/pyxdg/pyxdg.SlackBuild')
-rwxr-xr-x | source/x/pyxdg/pyxdg.SlackBuild | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source/x/pyxdg/pyxdg.SlackBuild b/source/x/pyxdg/pyxdg.SlackBuild index 297f53799..7b705aeb1 100755 --- a/source/x/pyxdg/pyxdg.SlackBuild +++ b/source/x/pyxdg/pyxdg.SlackBuild @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2019 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2019, 2024 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=pyxdg VERSION=${VERSION:-$(echo ${PKGNAM}-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-4} +BUILD=${BUILD:-2} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then @@ -75,14 +75,16 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \+ -python3 setup.py install --root=$PKG || exit 1 +unshare -n python3 -m build --wheel --no-isolation || exit 1 + +python3 -m installer --destdir "$PKG" dist/*.whl || exit 1 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/$PKGNAM-$VERSION cp -a \ - AUTHORS COPYING ChangeLog INSTALL PKG-INFO README TODO \ + AUTHORS* COPYING* ChangeLog* INSTALL* PKG-INFO* README* TODO* \ $PKG/usr/doc/$PKGNAM-$VERSION mkdir -p $PKG/install |