Initial commit

This commit is contained in:
2025-10-01 15:34:20 +03:00
commit c7e3c88a08
4 changed files with 48 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
# Exclude bpm archives
*.bpm
+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
# Sourceforge project
REPO="docutils"
# Get version using best_release.json
VERSION=$(curl -s -L https://sourceforge.net/projects/"$REPO"/best_release.json | jq '.platform_releases.linux.filename' | cut -d'/' -f3)
echo "$VERSION"
+18
View File
@@ -0,0 +1,18 @@
name: python-docutils
description: Open-source python text processing system for processing plaintext documentation into other formats
version: 0.22.2
revision: 1
license: Public-Domain,BSD-2-Clause,GPL3-or-later,Python-2.0
architecture: any
type: source
depends:
- python3
make_depends:
- python-build
- python-flit-core
- python-installer
downloads:
- url: https://downloads.sourceforge.net/project/docutils/docutils/${BPM_PKG_VERSION}/docutils-${BPM_PKG_VERSION}.tar.gz
extract_to_bpm_source: true
extract_strip_components: 1
checksum: 9fdb771707c8784c8f2728b67cb2c691305933d68137ef95a75db5f4dfbc213d
+19
View File
@@ -0,0 +1,19 @@
# 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() {
python3 -m build --wheel --no-isolation .
}
# The package function is executed in the source directory
# This function is used to move the compiled files into the output directory
package() {
python3 -m installer --destdir="$BPM_OUTPUT" dist/*.whl
# Install package license
install -Dm644 "$BPM_SOURCE"/COPYING.rst "$BPM_OUTPUT"/usr/share/licenses/python-docutils/COPYING.rst
install -Dm644 "$BPM_SOURCE"/licenses/{*.rst,*.txt} -t "$BPM_OUTPUT"/usr/share/licenses/python-docutils/
}