summaryrefslogtreecommitdiff
path: root/libre/libretools/libretools.install
blob: 260b8587aa0925f67c4a60da2582253163f6c9a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

# arg 1:  the new package version
post_install() {
	librefetch-install install etc/makepkg.conf
}

## arg 1:  the new package version
## arg 2:  the old package version
post_upgrade() {
	if [[ "$(vercmp 20160609 "$2")" -eq 1 ]]; then
		echo ":: To keep using old chroots, you may need to manually run"
		echo "   systemd-machine-id-setup --root=/path/to/chroot"
	fi
	librefetch-install install etc/makepkg.conf
}

pre_remove() {
	librefetch-install remove etc/makepkg.conf
}