summaryrefslogtreecommitdiffstats
path: root/main/docbook-xsl
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-11-18 09:37:14 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-11-18 09:37:14 +0000
commit13e87097c1bd5ae3b5af9e279264aac1d86f9e62 (patch)
tree0bd26b1fd3cac42b5f2e4020175a477fa13dddd2 /main/docbook-xsl
parent2d5ad4d5336f4a51514b3c26bf8ce318e027bfdf (diff)
downloadaports-13e87097c1bd5ae3b5af9e279264aac1d86f9e62.tar.bz2
aports-13e87097c1bd5ae3b5af9e279264aac1d86f9e62.tar.xz
main/docbook-xsl: fix post-deinstall
dont exit with error if package does not exist.
Diffstat (limited to 'main/docbook-xsl')
-rw-r--r--main/docbook-xsl/APKBUILD9
-rw-r--r--main/docbook-xsl/docbook-xsl.post-deinstall9
2 files changed, 12 insertions, 6 deletions
diff --git a/main/docbook-xsl/APKBUILD b/main/docbook-xsl/APKBUILD
index 5e9738c49..085493c72 100644
--- a/main/docbook-xsl/APKBUILD
+++ b/main/docbook-xsl/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=docbook-xsl
pkgver=1.74.0
-pkgrel=1
+pkgrel=2
pkgdesc="XML stylesheets for Docbook-xml transformations."
url="http://scrollkeeper.sourceforge.net/docbook.shtml"
license="custom"
@@ -10,8 +10,11 @@ makedepends=""
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.post-deinstall"
source="http://downloads.sourceforge.net/sourceforge/docbook/$pkgname-$pkgver.tar.bz2"
-build ()
-{
+build() {
+ return 0
+}
+
+package() {
cd "$srcdir"/$pkgname-$pkgver
_dest="$pkgdir"/usr/share/xml/docbook/xsl-stylesheets-$pkgver
mkdir -p "$_dest"/common
diff --git a/main/docbook-xsl/docbook-xsl.post-deinstall b/main/docbook-xsl/docbook-xsl.post-deinstall
index 1d042b04d..2b9f0d4a1 100644
--- a/main/docbook-xsl/docbook-xsl.post-deinstall
+++ b/main/docbook-xsl/docbook-xsl.post-deinstall
@@ -2,6 +2,9 @@
_OLD=${1%-r[0-9]*}
-xmlcatalog --noout --del \
- "/usr/share/xml/docbook/xsl-stylesheets-${_OLD}" \
- etc/xml/catalog
+if which xmlcatalog > /dev/null; then
+ xmlcatalog --noout --del \
+ "/usr/share/xml/docbook/xsl-stylesheets-${_OLD}" \
+ etc/xml/catalog
+fi
+