aboutsummaryrefslogtreecommitdiff
path: root/system/slpkg/slpkg.SlackBuild
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2022-06-27 16:07:12 +0300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-07-02 09:55:44 +0700
commitd4d75ea63f5601f51c5c52dd399ed2e3fc38581e (patch)
tree60c3baa67900fe70e3a820c9b5598903dde8b9e1 /system/slpkg/slpkg.SlackBuild
parent61c32133465cfa1e5d17bf03b04e7154724b77b1 (diff)
system/slpkg: Updated for version 4.1.3.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/slpkg/slpkg.SlackBuild')
-rw-r--r--system/slpkg/slpkg.SlackBuild20
1 files changed, 9 insertions, 11 deletions
diff --git a/system/slpkg/slpkg.SlackBuild b/system/slpkg/slpkg.SlackBuild
index 7d2dd7ae8c50..43e0a704bf0e 100644
--- a/system/slpkg/slpkg.SlackBuild
+++ b/system/slpkg/slpkg.SlackBuild
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=slpkg
-VERSION=${VERSION:-3.9.8}
+VERSION=${VERSION:-4.1.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -81,26 +81,24 @@ find -L . \
python3 setup.py install --root=$PKG
+mkdir -p $PKG/usr/sbin
+cp bin/slpkg $PKG/usr/sbin/slpkg
+
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 configuration files
-CONFIGS="slpkg.conf repositories.conf blacklist slackware-mirrors \
- default-repositories custom-repositories rlworkman.deps pkg_security"
-for file in $CONFIGS; do
- install -D -m0644 conf/$file $PKG/etc/slpkg/${file}.new
-done
+install -D -m0644 configs/slpkg.yaml $PKG/etc/slpkg/slpkg.yaml.new
+install -D -m0644 configs/blacklist.yaml $PKG/etc/slpkg/blacklist.yaml.new
-# keep original configuration file for reset
-cp -p conf/slpkg.conf $PKG/etc/slpkg/slpkg.conf.orig
+mkdir -p $PKG/usr/man/man1
+cp man/slpkg.1 $PKG/usr/man/man1
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.md ChangeLog.txt LICENSE ISSUES KNOWN_ISSUES REPOSITORIES.md \
- INSTALL.md requirements.txt $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README.rst ChangeLog.txt LICENSE.txt requirements.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install