summarylogtreecommitdiffstats
path: root/fman.install
blob: 832427d5267a92d882b331644a50be0c6250fe73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
post_install() {
    :
#!/bin/sh

set -e

pacman-key --add /opt/fman/public.gpg-key
pacman-key --lsign-key B015FE599CFAF7EB

if ! grep -qx "\[fman\]" /etc/pacman.conf ; then
	echo -e '\n[fman]\nInclude = /etc/pacman.d/fman' >> /etc/pacman.conf
fi
}
post_upgrade() {
    :
#!/bin/sh
# When we don't specify an --after-upgrade script for fpm, --after-install is
# called after upgrades as well (according to the fpm documentation, in order to
# preserve backwards compatibility). We therefore have this script here - even
# though it is currently empty - to ensure that our --after-install script
# is not called after mere upgrades as well.
}
post_remove() {
    :
#!/bin/sh
set -e
perl -i~ -0777 -pe 's:\n\[fman\]\nInclude = /etc/pacman.d/fman\n::g' /etc/pacman.conf
}