From e8e828e47ccce080bd357f11cc5349ec8c2eedc4 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Fri, 26 May 2023 12:40:13 +0300 Subject: [PATCH] Updated for configs --- slackbuild/doinst.sh | 12 ++++-------- slackbuild/slpkg.SlackBuild | 8 ++++---- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/slackbuild/doinst.sh b/slackbuild/doinst.sh index 1202f40d..c6a3943f 100644 --- a/slackbuild/doinst.sh +++ b/slackbuild/doinst.sh @@ -8,11 +8,7 @@ config() { fi } -config etc/slpkg/slpkg.toml.new -config etc/slpkg/repositories.toml.new -config etc/slpkg/blacklist.toml.new -config etc/slpkg/rules.toml.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 rules" +for file in $FILES; do + install -D -m0644 configs/$file.toml $PKG/etc/slpkg/$file.toml.new +done \ No newline at end of file diff --git a/slackbuild/slpkg.SlackBuild b/slackbuild/slpkg.SlackBuild index c89bb020..8a896d72 100755 --- a/slackbuild/slpkg.SlackBuild +++ b/slackbuild/slpkg.SlackBuild @@ -98,10 +98,10 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr # Install configuration files and creating lib directory mkdir -p $PKG/etc/$PRGNAM -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 -install -D -m0644 configs/rules.toml $PKG/etc/slpkg/rules.toml.new +FILES="slpkg repositories blacklist rules" +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/fr/man1 cp man/slpkg.1 $PKG/usr/man/man1