From 7dcadf2ec233979f05f2818f0643ede30f1c3748 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Mon, 3 Nov 2025 16:12:40 +0200 Subject: [PATCH] Initial commit --- .gitignore | 2 ++ check-version.sh | 4 ++++ pkg.info | 15 +++++++++++++++ source.sh | 16 ++++++++++++++++ 4 files changed, 37 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..7e3b051 --- /dev/null +++ b/pkg.info @@ -0,0 +1,15 @@ +name: gnu-efi +description: Develop EFI applications using the GNU toolchain and the EFI development environment +version: 3.0.18 +revision: 1 +url: https://github.com/ncroxon/gnu-efi +license: BSD-2-Clause +architecture: any +type: source +options: + - nostrip +downloads: + - url: https://github.com/ncroxon/gnu-efi/archive/refs/tags/${BPM_PKG_VERSION}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 60bbd8bec24bfef808cd871231931ad9e2f95485b1160bda2c64e52655f6655d diff --git a/source.sh b/source.sh new file mode 100644 index 0000000..a5c6b9e --- /dev/null +++ b/source.sh @@ -0,0 +1,16 @@ +# 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() { + export CFLAGS="-O2" LDFLAGS= + 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 INSTALLROOT="$BPM_OUTPUT" PREFIX=/usr install +}