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