summarylogtreecommitdiffstats
path: root/mbdyn.install
blob: 672bc43a9282821357aa07d6e7ed3fadcbd1b930 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

## arg 1:  the new package version
pre_install() {
	if [[ ! -d "/usr/lib/${pkgname::-4}" ]]; then
		mkdir /usr/lib/${pkgname::-4}
	fi
}

## arg 1:  the old package version
post_remove() {
	if [[ -z "${pkgname::-4}" ]]; then
		rmdir /usr/lib/${pkgname::-4}
	fi
}