Updated for configs

This commit is contained in:
Dimitris Zlatanidis 2023-05-26 12:40:13 +03:00
parent 2de3cc1c2e
commit e8e828e47c
2 changed files with 8 additions and 12 deletions

View file

@ -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

View file

@ -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