Fix dependencies

This commit is contained in:
2025-10-07 11:56:45 +03:00
parent 83a27995e5
commit 5d81f65497
2 changed files with 31 additions and 18 deletions
+2 -13
View File
@@ -2,22 +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://ftpmirror.gnu.org/gnu/grub/grub-${BPM_PKG_VERSION}.tar.xz"
UNIFONT_VERSION="16.0.03"
DOWNLOAD_UNIFONT="https://ftpmirror.gnu.org/gnu/unifont/unifont-${UNIFONT_VERSION}/unifont-${UNIFONT_VERSION}.bdf.gz"
FILENAME="${DOWNLOAD##*/}"
FILENAME_UNIFONT="${DOWNLOAD_UNIFONT##*/}"
# 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"
wget "$DOWNLOAD_UNIFONT"
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
# Decompress unifont file to source directory
gunzip -c "$FILENAME_UNIFONT" > "$BPM_SOURCE"/unifont.bdf
gunzip -c unifont.bdf.gz > "$BPM_SOURCE"/unifont.bdf
}
# The build function is executed in the source directory