mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
32 lines
688 B
Text
32 lines
688 B
Text
|
infodir=/usr/share/info
|
||
|
filelist=(adesklets.info adesklets_fr.info)
|
||
|
|
||
|
post_install() {
|
||
|
for file in ${filelist[@]}; do
|
||
|
install-info $infodir/$file $infodir/dir 2> /dev/null
|
||
|
done
|
||
|
|
||
|
getent group adesklets > /dev/null || usr/sbin/groupadd -g 107 adesklets
|
||
|
cat << EOF
|
||
|
|
||
|
==> To be able to save configs of adesklets
|
||
|
==> add your user to the adesklets group:
|
||
|
==> # gpasswd -a USERNAME adesklets
|
||
|
|
||
|
EOF
|
||
|
}
|
||
|
|
||
|
post_upgrade() {
|
||
|
for file in ${filelist[@]}; do
|
||
|
install-info $infodir/$file $infodir/dir 2> /dev/null
|
||
|
done
|
||
|
}
|
||
|
|
||
|
post_remove() {
|
||
|
for file in ${filelist[@]}; do
|
||
|
install-info --delete $infodir/$file $infodir/dir 2> /dev/null
|
||
|
done
|
||
|
|
||
|
usr/sbin/groupdel adesklets &>/dev/null
|
||
|
}
|