summarylogtreecommitdiffstats
path: root/pamac.install
blob: fe0dcc691a206794cd23ff35e22e0eb2be58344d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
post_install() {
  # enable systemd timers
  ln -sf /usr/lib/systemd/system/pamac-cleancache.timer /etc/systemd/system/multi-user.target.wants
  ln -sf /usr/lib/systemd/system/pamac-mirrorlist.timer /etc/systemd/system/multi-user.target.wants
  # polkit agent
  printf '==> An authentication agent is required\n'
  printf '    Cinnamon, Deepin, GNOME, GNOME Flashback, KDE, LXDE, LXQt, MATE and Xfce\n'
  printf '    have an authentication agent already.\n'
  printf '    See https://wiki.archlinux.org/index.php/Polkit#Authentication_agents\n'
  printf '    for other desktop environments.\n'
}

#post-update {
#   zcat /usr/share/app-info/xmls/community.xml.gz | sed 's|<em>||g;s|<\/em>||g;' | gzip > "new.xml.gz"
#   cp new.xml.gz /usr/share/app-info/xmls/community.xml.gz
#   appstreamcli refresh-cache --force
#}

post_remove() {
  # disable systemd timers
  rm -f /etc/systemd/system/multi-user.target.wants/pamac-cleancache.timer
  rm -f /etc/systemd/system/multi-user.target.wants/pamac-mirrorlist.timer
}