summarylogtreecommitdiffstats
path: root/jedit-pkgbuild.install
blob: a5069e09312847a42496ba51d9261005b68571a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
post_install() {
	xmlstarlet sel -Q -t -c //MODE[@FILE_NAME_GLOB=\"PKGBUILD\"] /usr/share/jedit-pkgbuild/catalog.xml && xmlstarlet ed -L -d //MODE[@FILE_NAME_GLOB=\"PKGBUILD\"] /usr/share/jedit-pkgbuild/catalog.xml
	xmlstarlet ed -L -s /MODES -t elem -n MODE -i //MODE[last\(\)] -t attr -n NAME -v PKGBUILD -i //MODE[last\(\)] -t attr -n FILE -v pkgbuild.xml -i //MODE[last\(\)] -t attr -n FILE_NAME_GLOB -v PKGBUILD /usr/share/jedit-pkgbuild/catalog.xml
}

post_upgrade() {
	post_install $1
}

pre_remove() {
	xmlstarlet ed -L -d //MODE[@FILE_NAME_GLOB=\"PKGBUILD\"] /usr/share/jedit-pkgbuild/catalog.xml
}