Initial Commit
This commit is contained in:
@@ -0,0 +1 @@
|
||||
ARCH=any
|
||||
@@ -0,0 +1,8 @@
|
||||
name: docbook-xsl-nons
|
||||
description: Docbook XSL modular stylesheet
|
||||
version: 1.79.2
|
||||
url: https://docbook.org/
|
||||
license: LicenseRef-docbook-XSL
|
||||
architecture: any
|
||||
depends: ["docbook-xml","libxml2","libxslt"]
|
||||
type: source
|
||||
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
[[ -f /etc/xml/catalog ]] || xmlcatalog --noout --create "$BPM_ROOT"/etc/xml/catalog
|
||||
|
||||
for ver in ${BPM_PKG_VERSION} current; do
|
||||
for x in rewriteSystem rewriteURI; do
|
||||
xmlcatalog --noout --add $x http://cdn.docbook.org/release/xsl/$ver \
|
||||
/usr/share/xml/docbook/xsl-stylesheets-nons-${BPM_PKG_VERSION} \
|
||||
"$BPM_ROOT"/etc/xml/catalog
|
||||
|
||||
xmlcatalog --noout --add $x http://cdn.docbook.org/release/xsl-nons/$ver \
|
||||
/usr/share/xml/docbook/xsl-stylesheets-nons-${BPM_PKG_VERSION}-nons \
|
||||
"$BPM_ROOT"/etc/xml/catalog
|
||||
|
||||
xmlcatalog --noout --add $x http://docbook.sourceforge.net/release/xsl-ns/$ver \
|
||||
/usr/share/xml/docbook/xsl-stylesheets-nons-${BPM_PKG_VERSION} \
|
||||
"$BPM_ROOT"/etc/xml/catalog
|
||||
|
||||
xmlcatalog --noout --add $x http://docbook.sourceforge.net/release/xsl/$ver \
|
||||
/usr/share/xml/docbook/xsl-stylesheets-nons-${BPM_PKG_VERSION} \
|
||||
"$BPM_ROOT"/etc/xml/catalog
|
||||
done
|
||||
done
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
xmlcatalog --noout --del "$BPM_ROOT"/usr/share/xml/docbook/xsl-stylesheets-nons-${BPM_PKG_OLD_VERSION}
|
||||
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
xmlcatalog --noout --del "$BPM_ROOT"/usr/share/xml/docbook/xsl-stylesheets-nons-${BPM_PKG_OLD_VERSION}
|
||||
|
||||
[[ -f /etc/xml/catalog ]] || xmlcatalog --noout --create "$BPM_ROOT"/etc/xml/catalog
|
||||
|
||||
for ver in ${BPM_PKG_VERSION} current; do
|
||||
for x in rewriteSystem rewriteURI; do
|
||||
xmlcatalog --noout --add $x http://cdn.docbook.org/release/xsl/$ver \
|
||||
/usr/share/xml/docbook/xsl-stylesheets-nons-${BPM_PKG_VERSION} \
|
||||
"$BPM_ROOT"/etc/xml/catalog
|
||||
|
||||
xmlcatalog --noout --add $x http://cdn.docbook.org/release/xsl-nons/$ver \
|
||||
/usr/share/xml/docbook/xsl-stylesheets-nons-${BPM_PKG_VERSION}-nons \
|
||||
"$BPM_ROOT"/etc/xml/catalog
|
||||
|
||||
xmlcatalog --noout --add $x http://docbook.sourceforge.net/release/xsl-ns/$ver \
|
||||
/usr/share/xml/docbook/xsl-stylesheets-nons-${BPM_PKG_VERSION} \
|
||||
"$BPM_ROOT"/etc/xml/catalog
|
||||
|
||||
xmlcatalog --noout --add $x http://docbook.sourceforge.net/release/xsl/$ver \
|
||||
/usr/share/xml/docbook/xsl-stylesheets-nons-${BPM_PKG_VERSION} \
|
||||
"$BPM_ROOT"/etc/xml/catalog
|
||||
done
|
||||
done
|
||||
@@ -0,0 +1,43 @@
|
||||
# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package
|
||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||
|
||||
DOWNLOAD="https://github.com/docbook/xslt10-stylesheets/releases/download/release/${BPM_PKG_VERSION}/docbook-xsl-nons-${BPM_PKG_VERSION}.tar.bz2"
|
||||
DOWNLOAD_DOCS="https://github.com/docbook/xslt10-stylesheets/releases/download/release/${BPM_PKG_VERSION}/docbook-xsl-doc-${BPM_PKG_VERSION}.tar.bz2"
|
||||
FILENAME="${DOWNLOAD##*/}"
|
||||
FILENAME_DOCS="${DOWNLOAD_DOCS##*/}"
|
||||
|
||||
# The prepare function is executed in the root of the temp directory
|
||||
# This function is used for downloading files and putting them into the correct location
|
||||
prepare() {
|
||||
wget "$DOWNLOAD"
|
||||
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
||||
wget "$DOWNLOAD_DOCS"
|
||||
tar -xvf "$FILENAME_DOCS" --strip-components=1 -C "$BPM_SOURCE"
|
||||
}
|
||||
|
||||
# The package function is executed in the source directory
|
||||
# This function is used to move the compiled files into the output directory
|
||||
package() {
|
||||
install -dvm755 "$BPM_OUTPUT"/usr/share/xml/docbook/xsl-stylesheets-nons-${BPM_PKG_VERSION}
|
||||
(
|
||||
shopt -s nullglob
|
||||
for i in assembly common eclipse epub epub3 fo highlighting html \
|
||||
htmlhelp javahelp lib manpages params profiling roundtrip template \
|
||||
website xhtml xhtml-1_1 xhtml5
|
||||
do
|
||||
install -Dm644 ./"$i"/*.{xml,xsl,dtd,ent} -t "$BPM_OUTPUT"/usr/share/xml/docbook/xsl-stylesheets-nons-${BPM_PKG_VERSION}/"$i"
|
||||
done
|
||||
)
|
||||
|
||||
install -Dm644 VERSION{,.xsl} -t "$BPM_OUTPUT"/usr/share/xml/docbook/xsl-stylesheets-nons-${BPM_PKG_VERSION}
|
||||
|
||||
install -Dvm644 README \
|
||||
"$BPM_OUTPUT"/usr/share/doc/docbook-xsl-nons/README.txt
|
||||
install -Dvm644 RELEASE-NOTES* NEWS* \
|
||||
"$BPM_OUTPUT"/usr/share/doc/docbook-xsl-nons
|
||||
|
||||
cp -v -R doc/* "$BPM_OUTPUT"/usr/share/doc/docbook-xsl-nons
|
||||
|
||||
install -Dm644 COPYING "$BPM_OUTPUT"/usr/share/licenses/docbook-xsl-nons/COPYING
|
||||
}
|
||||
Reference in New Issue
Block a user