summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/libglade/glade.install
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-04-30 18:28:55 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-04-30 18:28:55 (GMT)
commitc37fcb9bfbacbde499f3a7ff3016c7af99a6a7ab (patch)
treeab0761e1bf94dd687e69420763abe572c68f22d9 /abs/extra-testing/libglade/glade.install
parente0366c16c6cc3833daffc4fc0c24c642bff870e2 (diff)
downloadlinhes_pkgbuild-c37fcb9bfbacbde499f3a7ff3016c7af99a6a7ab.zip
linhes_pkgbuild-c37fcb9bfbacbde499f3a7ff3016c7af99a6a7ab.tar.gz
linhes_pkgbuild-c37fcb9bfbacbde499f3a7ff3016c7af99a6a7ab.tar.bz2
Updated to latest.
Diffstat (limited to 'abs/extra-testing/libglade/glade.install')
-rw-r--r--abs/extra-testing/libglade/glade.install25
1 files changed, 25 insertions, 0 deletions
diff --git a/abs/extra-testing/libglade/glade.install b/abs/extra-testing/libglade/glade.install
new file mode 100644
index 0000000..a7f05c5
--- /dev/null
+++ b/abs/extra-testing/libglade/glade.install
@@ -0,0 +1,25 @@
+post_install() {
+ if [ ! -d etc/xml ]; then
+ mkdir -p etc/xml
+ fi
+ if [ ! -e etc/xml/catalog ]; then
+ xmlcatalog --noout --create etc/xml/catalog
+ fi
+ xmlcatalog --noout --add "system" \
+ "http://glade.gnome.org/glade-2.0.dtd" \
+ /usr/share/xml/libglade/glade-2.0.dtd etc/xml/catalog
+}
+
+pre_upgrade() {
+ post_remove
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+# arg 1: the old package version
+post_remove() {
+ xmlcatalog --noout --del \
+ /usr/share/xml/libglade/glade-2.0.dtd etc/xml/catalog
+}