OSDN Git Service

added pm-wrapper-interface
[alterlinux/alterlinux-pkgbuilds.git] / alter-stable / any / pamac-aur / pamac.install
1 post_install() {
2    # enable flatpak repo
3   if [ -f /usr/bin/flatpak ]; then
4     flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
5   fi   
6   # enable systemd timers
7   ln -sf /usr/lib/systemd/system/pamac-cleancache.timer /etc/systemd/system/multi-user.target.wants
8   #ln -sf /usr/lib/systemd/system/pamac-mirrorlist.timer /etc/systemd/system/multi-user.target.wants
9   # polkit agent
10   printf '==> An authentication agent is required\n'
11   printf '    Cinnamon, Deepin, GNOME, GNOME Flashback, KDE, LXDE, LXQt, MATE and Xfce\n'
12   printf '    have an authentication agent already.\n'
13   printf '    See https://wiki.archlinux.org/index.php/Polkit#Authentication_agents\n'
14   printf '    for other desktop environments.\n'
15 }
16
17 post_upgrade() {
18    # enable flatpak repo
19   if [ -f /usr/bin/flatpak ]; then
20     flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
21   fi   
22 }
23
24 post_remove() {
25   # disable systemd timers
26   rm -f /etc/systemd/system/multi-user.target.wants/pamac-cleancache.timer
27   #rm -f /etc/systemd/system/multi-user.target.wants/pamac-mirrorlist.timer
28 }