diff --git a/pkg.info b/pkg.info index e9e422b..c72124b 100644 --- a/pkg.info +++ b/pkg.info @@ -9,4 +9,9 @@ depends: ["bash"] make_depends: ["golang","git"] optional_depends: ["fakeroot"] keep: ["etc/bpm.conf","etc/bpm-compilation.conf"] +downloads: + - url: "https://github.com/EnumeratedDev/bpm/archive/refs/tags/${BPM_PKG_VERSION}.tar.gz" + extract_to_bpm_source: true + extract_strip_components: 1 + checksum: b0f3859864f410aa1253799387896140f5e19062a4017765c8c4dbb2277b9952 type: source diff --git a/source.sh b/source.sh index 5f1eac2..14fe198 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/bpm.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() {