Files
AUR/backtunnel/backtunnel.install

42 lines
1.2 KiB
Plaintext

post_install() {
# Refresh desktop DB
if command -v update-desktop-database >/dev/null 2>&1; then
update-desktop-database -q || true
fi
# Rebuild KDE service cache
if command -v kbuildsycoca6 >/dev/null 2>&1; then
kbuildsycoca6 --noincremental >/dev/null 2>&1 || true
elif command -v kbuildsycoca5 >/dev/null 2>&1; then
kbuildsycoca5 --noincremental >/dev/null 2>&1 || true
fi
cat <<'EOF'
==> BackTunnel profiles
Per-user: ~/.config/backtunnel/profiles.ini
System-wide: /etc/backtunnel/profiles.ini
Example: /usr/share/backtunnel/profiles.ini
To create a per-user config from the example, run:
backtunnel-init
or manually:
mkdir -p ~/.config/backtunnel
cp /usr/share/backtunnel/profiles.ini ~/.config/backtunnel/profiles.ini
# then edit ~/.config/backtunnel/profiles.ini
EOF
}
post_upgrade() {
post_install
}
post_remove() {
if command -v update-desktop-database >/dev/null 2>&1; then
update-desktop-database -q || true
fi
if command -v kbuildsycoca6 >/dev/null 2>&1; then
kbuildsycoca6 --noincremental >/dev/null 2>&1 || true
elif command -v kbuildsycoca5 >/dev/null 2>&1; then
kbuildsycoca5 --noincremental >/dev/null 2>&1 || true
fi
}