Switch to new download format, update source.sh script and add patch

This commit is contained in:
2026-03-13 18:30:48 +02:00
parent 927d18b2e5
commit d156cb4bf2
3 changed files with 44 additions and 20 deletions
+4 -19
View File
@@ -2,18 +2,11 @@
# 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
# This function is used for putting downloaded files to the correct location or applying patches
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"
cd "$BPM_SOURCE"
patch -Np2 -i "$BPM_WORKDIR"/765567_non-recursive_string_subst.patch
}
# The package function is executed in the source directory
@@ -30,14 +23,6 @@ package() {
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 package license
install -Dm644 COPYING "$BPM_OUTPUT"/usr/share/licenses/docbook-xsl-nons/COPYING
}