summaryrefslogtreecommitdiff
path: root/repo/devel/docbook-xsl.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-03-03 00:13:55 +0000
committerdavidovski <david@davidovski.xyz>2022-03-03 00:13:55 +0000
commit2fea415a8b6ab9eae92686a182341d8f5fe56d00 (patch)
tree889fee82b0ebde2870be7673fc7eff9c2bc2efeb /repo/devel/docbook-xsl.xibuild
parent92a76bb80efda3fcb96cb0a990ae5bfa658449d1 (diff)
fixed docbook issues
Diffstat (limited to 'repo/devel/docbook-xsl.xibuild')
-rw-r--r--repo/devel/docbook-xsl.xibuild39
1 files changed, 21 insertions, 18 deletions
diff --git a/repo/devel/docbook-xsl.xibuild b/repo/devel/docbook-xsl.xibuild
index 18af313..f5d576d 100644
--- a/repo/devel/docbook-xsl.xibuild
+++ b/repo/devel/docbook-xsl.xibuild
@@ -33,39 +33,42 @@ package () {
$PKG_DEST/usr/share/doc/docbook-xsl-nons-$PKG_VER
- if [ ! -d $PKG_DEST/etc/xml ]; then install -m755 -d $PKG_DEST/etc/xml; fi &&
- if [ ! -f $PKG_DEST/etc/xml/catalog ]; then
- xmlcatalog --noout --create $PKG_DEST/etc/xml/catalog
+ }
+
+postinstall () {
+ if [ ! -d /etc/xml ]; then install -m755 -d /etc/xml; fi &&
+ if [ ! -f /etc/xml/catalog ]; then
+ xmlcatalog --noout --create /etc/xml/catalog
fi &&
xmlcatalog --noout --add "rewriteSystem" \
- "https://cdn.docbook.org/release/xsl-nons/$PKG_VER" \
- "/usr/share/xml/docbook/xsl-stylesheets-nons-$PKG_VER" \
- $PKG_DEST/etc/xml/catalog &&
+ "https://cdn.docbook.org/release/xsl-nons/1.79.2" \
+ "/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2" \
+ /etc/xml/catalog &&
xmlcatalog --noout --add "rewriteURI" \
- "https://cdn.docbook.org/release/xsl-nons/$PKG_VER" \
- "/usr/share/xml/docbook/xsl-stylesheets-nons-$PKG_VER" \
- $PKG_DEST/etc/xml/catalog &&
+ "https://cdn.docbook.org/release/xsl-nons/1.79.2" \
+ "/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2" \
+ /etc/xml/catalog &&
xmlcatalog --noout --add "rewriteSystem" \
"https://cdn.docbook.org/release/xsl-nons/current" \
- "/usr/share/xml/docbook/xsl-stylesheets-nons-$PKG_VER" \
- $PKG_DEST/etc/xml/catalog &&
+ "/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2" \
+ /etc/xml/catalog &&
xmlcatalog --noout --add "rewriteURI" \
"https://cdn.docbook.org/release/xsl-nons/current" \
- "/usr/share/xml/docbook/xsl-stylesheets-nons-$PKG_VER" \
- $PKG_DEST/etc/xml/catalog &&
+ "/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2" \
+ /etc/xml/catalog &&
xmlcatalog --noout --add "rewriteSystem" \
"http://docbook.sourceforge.net/release/xsl/current" \
- "/usr/share/xml/docbook/xsl-stylesheets-nons-$PKG_VER" \
- $PKG_DEST/etc/xml/catalog &&
+ "/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2" \
+ /etc/xml/catalog &&
xmlcatalog --noout --add "rewriteURI" \
"http://docbook.sourceforge.net/release/xsl/current" \
- "/usr/share/xml/docbook/xsl-stylesheets-nons-$PKG_VER" \
- $PKG_DEST/etc/xml/catalog
-
+ "/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2" \
+ /etc/xml/catalog
}
+