From 13a6e8fb03cda7454ef664e880556aca81f6c94f Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sat, 27 Sep 2025 09:56:34 +0300 Subject: [PATCH] Switch to new download format --- pkg.info | 9 +++++++-- source.sh | 8 -------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/pkg.info b/pkg.info index b84fa8c..f577039 100644 --- a/pkg.info +++ b/pkg.info @@ -5,6 +5,11 @@ revision: 2 url: https://github.com/EnumeratedDev/enit license: MIT architecture: any -dependencies: ["util-linux"] -make_dependencies: ["golang"] +output_architecture: x86_64 type: source +downloads: + - url: https://github.com/EnumeratedDev/enit.git + type: git + extract_to_bpm_source: true + git_branch: ${BPM_PKG_VERSION} + checksum: b77147434e76b456135f7c9662e9ab5fe35a1de7 diff --git a/source.sh b/source.sh index 012d44c..ccf585a 100644 --- a/source.sh +++ b/source.sh @@ -2,14 +2,6 @@ # 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 -REPO="https://github.com/EnumeratedDev/enit.git" - -# 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 -prepare() { - git clone --depth 1 --branch "${BPM_PKG_VERSION}" "$REPO" "$BPM_SOURCE" -} - # The build function is executed in the source directory # This function is used to compile the source code build() {