From eac8e503c80c686d8a295c693497d45d7f0ab9b0 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Thu, 4 Dec 2025 15:38:57 +0200 Subject: [PATCH] Initial commit --- .gitignore | 2 ++ pkg.info | 15 +++++++++++++++ source.sh | 18 ++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 .gitignore create mode 100644 pkg.info create mode 100644 source.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3e58e5f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Exclude bpm archives +*.bpm \ No newline at end of file diff --git a/pkg.info b/pkg.info new file mode 100644 index 0000000..1d04f56 --- /dev/null +++ b/pkg.info @@ -0,0 +1,15 @@ +name: xmltoman +description: Convert xml to man pages in groff format or html +version: "0.4" +revision: 1 +url: http://xmltoman.sourceforge.net/ +license: GPL2 +architecture: any +type: source +depends: + - perl-xml-parser +downloads: + - url: https://downloads.sourceforge.net/project/xmltoman/xmltoman/xmltoman-${BPM_PKG_VERSION}.tar.gz/xmltoman-${BPM_PKG_VERSION}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 948794a316aaecd13add60e17e476beae86644d066cb60171fc6b779f2df14b0 diff --git a/source.sh b/source.sh new file mode 100644 index 0000000..cdb42fd --- /dev/null +++ b/source.sh @@ -0,0 +1,18 @@ +# 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 + +# The build function is executed in the source directory +# This function is used to compile the source code +build() { + make PREFIX=/usr +} + +# The package function is executed in the source directory +# This function is used to move the compiled files into the output directory +package() { + make DESTDIR="$BPM_OUTPUT" PREFIX=/usr install + + # Install package license + install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/xmltoman/COPYING +}