From cc06e7bb952d517c68972d629d371c216015e204 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sun, 26 Oct 2025 11:01:08 +0200 Subject: [PATCH] Initial commit --- .gitignore | 2 ++ check-version.sh | 4 ++++ pkg.info | 16 ++++++++++++++++ source.sh | 12 ++++++++++++ 4 files changed, 34 insertions(+) create mode 100644 .gitignore create mode 100644 check-version.sh 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/check-version.sh b/check-version.sh new file mode 100644 index 0000000..cd89e29 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +# Ignore this package +echo "ignore" diff --git a/pkg.info b/pkg.info new file mode 100644 index 0000000..e2aa1cf --- /dev/null +++ b/pkg.info @@ -0,0 +1,16 @@ +name: gnu-freefont +description: Free family of scalable outline fonts +version: "20120503" +revision: 1 +url: https://www.gnu.org/software/freefont/ +license: GPL3-or-later +architecture: any +output_architecture: any +type: source +provides: + - ttf-font +downloads: + - url: https://ftpmirror.gnu.org/gnu/freefont/freefont-otf-${BPM_PKG_VERSION}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 3a6c51868c71b006c33c4bcde63d90927e6fcca8f51c965b8ad62d021614a860 diff --git a/source.sh b/source.sh new file mode 100644 index 0000000..4bee2e4 --- /dev/null +++ b/source.sh @@ -0,0 +1,12 @@ +# 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 package function is executed in the source directory +# This function is used to move the compiled files into the output directory +package() { + install -Dm644 *.otf -t "$BPM_OUTPUT"/usr/share/fonts/gnu-free-fonts/ + + # Install package license + install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/gnu-freefont/COPYING +}