diff options
Diffstat (limited to 'system/slpkg')
-rw-r--r-- | system/slpkg/doinst.sh | 10 | ||||
-rw-r--r-- | system/slpkg/slpkg.SlackBuild | 24 | ||||
-rw-r--r-- | system/slpkg/slpkg.info | 10 |
3 files changed, 25 insertions, 19 deletions
diff --git a/system/slpkg/doinst.sh b/system/slpkg/doinst.sh index c07a4c6ffb..ad7af35073 100644 --- a/system/slpkg/doinst.sh +++ b/system/slpkg/doinst.sh @@ -8,9 +8,7 @@ config() { fi } -config etc/slpkg/slpkg.yaml.new -config etc/slpkg/blacklist.yaml.new - -if [ -x /usr/bin/update-desktop-database ]; then - /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 -fi +FILES="slpkg repositories blacklist" +for file in $FILES; do + config etc/slpkg/$file.toml.new +done diff --git a/system/slpkg/slpkg.SlackBuild b/system/slpkg/slpkg.SlackBuild index 43e0a704bf..7c219db719 100644 --- a/system/slpkg/slpkg.SlackBuild +++ b/system/slpkg/slpkg.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for slpkg -# Copyright 2014-2022 Dimitris Zlatanidis Orestiada, Greece +# Copyright 2014-2024 Dimitris Zlatanidis Orestiada, Greece # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=slpkg -VERSION=${VERSION:-4.1.3} +VERSION=${VERSION:-5.1.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -79,26 +79,34 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -python3 setup.py install --root=$PKG +python3 -m build --wheel --no-isolation +python3 -m installer --destdir "$PKG" dist/*.whl +# Move executables to the /usr/sbin folder. mkdir -p $PKG/usr/sbin -cp bin/slpkg $PKG/usr/sbin/slpkg +mv $PKG/usr/bin/slpkg $PKG/usr/sbin/slpkg +mv $PKG/usr/bin/slpkg_new-configs $PKG/usr/sbin/slpkg_new-configs +rm -rf $PKG/usr/bin 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/etc/slpkg -install -D -m0644 configs/slpkg.yaml $PKG/etc/slpkg/slpkg.yaml.new -install -D -m0644 configs/blacklist.yaml $PKG/etc/slpkg/blacklist.yaml.new +FILES="slpkg repositories blacklist" +for file in $FILES; do + install -D -m0644 configs/$file.toml $PKG/etc/slpkg/$file.toml.new +done -mkdir -p $PKG/usr/man/man1 +mkdir -p $PKG/usr/man/man1 & mkdir -p $PKG/usr/man/fr/man1 cp man/slpkg.1 $PKG/usr/man/man1 +cp man/slpkg-fr.1 $PKG/usr/man/fr/man1/slpkg.1 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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a README.rst ChangeLog.txt LICENSE.txt requirements.txt $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README.md ChangeLog.txt LICENSE requirements.txt repositories.txt \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/system/slpkg/slpkg.info b/system/slpkg/slpkg.info index dfeb1fa5f3..3d40bcd56c 100644 --- a/system/slpkg/slpkg.info +++ b/system/slpkg/slpkg.info @@ -1,10 +1,10 @@ PRGNAM="slpkg" -VERSION="4.1.3" +VERSION="5.1.0" HOMEPAGE="https://dslackw.gitlab.io/slpkg" -DOWNLOAD="https://gitlab.com/dslackw/slpkg/-/archive/4.1.3/slpkg-4.1.3.tar.gz" -MD5SUM="49a8716cd964bcbac26938907051d7c0" +DOWNLOAD="https://gitlab.com/dslackw/slpkg/-/archive/5.1.0/slpkg-5.1.0.tar.gz" +MD5SUM="b2ab9a20630e4b5892ab0ac24241bd2a" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="SQLAlchemy" +REQUIRES="python3-tomlkit python3-pythondialog" MAINTAINER="Dimitris Zlatanidis" -EMAIL="d.zlatanidis@gmail.com" +EMAIL="dslackw@gmail.com" |