docbook-xsl: Fix postinstall.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
pkgname=docbook-xsl
|
||||
pkgver=1.78.1
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc='XML stylesheets for Docbook-xml transformations'
|
||||
arch=('any')
|
||||
license=('custom')
|
||||
@@ -10,17 +10,18 @@ url='http://docbook.sourceforge.net/'
|
||||
depends=('libxml2' 'libxslt' 'docbook-xml')
|
||||
install="$pkgname.install"
|
||||
source=("http://downloads.sourceforge.net/docbook/${pkgname}-${pkgver}.tar.bz2")
|
||||
md5sums=('6dd0f89131cc35bf4f2ed105a1c17771')
|
||||
|
||||
package() {
|
||||
cd ${srcdir}/${pkgname}-${pkgver}
|
||||
|
||||
_pkgroot=${pkgdir}/usr/share/xml/docbook/xsl-stylesheets-${pkgver}
|
||||
|
||||
install -dm755 ${_pkgroot}
|
||||
install -dm755 ${_pkgroot}
|
||||
install -m644 VERSION VERSION.xsl ${_pkgroot}
|
||||
|
||||
for fn in assembly common eclipse epub epub3 fo highlighting html htmlhelp javahelp lib \
|
||||
manpages params profiling roundtrip template website xhtml xhtml-1_1 xhtml5; do
|
||||
manpages params profiling roundtrip template website xhtml xhtml-1_1 xhtml5; do
|
||||
install -dm755 ${_pkgroot}/${fn}
|
||||
install -m644 ${fn}/*.{xml,xsl,dtd,ent} ${_pkgroot}/${fn} || true # ignore missing files
|
||||
done
|
||||
@@ -30,4 +31,3 @@ package() {
|
||||
|
||||
mv -f ${pkgdir}/etc ${pkgdir}/usr/
|
||||
}
|
||||
md5sums=('6dd0f89131cc35bf4f2ed105a1c17771')
|
||||
|
||||
@@ -34,7 +34,7 @@ post_remove() {
|
||||
_OLD=`echo $1 | sed 's|\(.*\)\-.*|\1|'`
|
||||
xmlcatalog --noout --del "/usr/share/xml/docbook/xsl-stylesheets-${_OLD}" etc/xml/catalog
|
||||
|
||||
if [ $(vercmp $1 1.72.0-3) -lt 0 ]; then
|
||||
if [ $(vercmp $1 1.78.1-1) -lt 0 ]; then
|
||||
xmlcatalog --noout --del "/usr/share/xml/docbook" etc/xml/catalog
|
||||
xmlcatalog --noout --del "file:///etc/xml/docbook" etc/xml/catalog
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user