aboutsummaryrefslogtreecommitdiff
path: root/system/slpkg/slpkg.SlackBuild
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2023-04-28 17:59:23 +0300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-04-29 18:11:47 +0700
commit49840e101be4429879679f6c943f51bb704d6b25 (patch)
tree1605d83c5da2076b90d2f55e501bd58d43d71056 /system/slpkg/slpkg.SlackBuild
parent5b477bc9e11d159eccca99f328924d98e6a95d76 (diff)
system/slpkg: Updated for version 4.8.2.
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.SlackBuild14
1 files changed, 7 insertions, 7 deletions
diff --git a/system/slpkg/slpkg.SlackBuild b/system/slpkg/slpkg.SlackBuild
index 1abe2d22394c7..e8a4e6187ff86 100644
--- a/system/slpkg/slpkg.SlackBuild
+++ b/system/slpkg/slpkg.SlackBuild
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=slpkg
-VERSION=${VERSION:-4.8.0}
+VERSION=${VERSION:-4.8.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -81,9 +81,11 @@ find -L . \
python3 setup.py install --root=$PKG
+# Move executables to the /usr/sbin folder.
mkdir -p $PKG/usr/sbin
-cp bin/slpkg $PKG/usr/sbin/slpkg
-cp bin/slpkg_new-configs $PKG/usr/sbin/slpkg_new-configs
+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
@@ -93,9 +95,6 @@ install -D -m0644 configs/slpkg.toml $PKG/etc/slpkg/slpkg.toml.new
install -D -m0644 configs/repositories.toml $PKG/etc/slpkg/repositories.toml.new
install -D -m0644 configs/blacklist.toml $PKG/etc/slpkg/blacklist.toml.new
-mkdir -p $PKG/var/lib/$PRGNAM/repositories/ponce
-cp tools/gen_sbo_txt.sh $PKG/var/lib/$PRGNAM/repositories/ponce
-
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
@@ -104,7 +103,8 @@ 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 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