From 039c6c9934f5ee54efc5295b44f1466db6532b18 Mon Sep 17 00:00:00 2001 From: CapCreeperGR Date: Mon, 8 Jul 2024 12:02:07 +0000 Subject: [PATCH] Updated to 0.3.1 --- pkg.info | 5 ++++- source-files/bpm.conf | 4 ++++ source.sh | 6 +++--- 3 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 source-files/bpm.conf diff --git a/pkg.info b/pkg.info index bfdd4b7..f1a8d41 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,10 @@ name: bpm description: A simple Linux package manager -version: 0.3.0 +version: 0.3.1 url: https://gitlab.com/bubble-package-manager/bpm license: MIT architecture: any +depends: fakeroot +make_depends: golang,git +keep: etc/bpm.conf type: source diff --git a/source-files/bpm.conf b/source-files/bpm.conf new file mode 100644 index 0000000..2fb22ba --- /dev/null +++ b/source-files/bpm.conf @@ -0,0 +1,4 @@ +compilation_env: [] +silent_compilation: false +compilation_dir: "/var/tmp/" +binary_output_dir: "/var/lib/bpm/compiled/" diff --git a/source.sh b/source.sh index 0401020..9ffcaed 100644 --- a/source.sh +++ b/source.sh @@ -7,9 +7,7 @@ REPO="https://gitlab.com/bubble-package-manager/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 "$REPO" "$BPM_SOURCE" - cd "$BPM_SOURCE" - git checkout tags/"$BPM_PKG_VERSION" + git clone --depth 1 --branch "${BPM_PKG_VERSION}" "$REPO" "$BPM_SOURCE" } # The build function is executed in the source directory @@ -23,4 +21,6 @@ build() { package() { mkdir -p "$BPM_OUTPUT"/usr/bin/ cp build/bpm "$BPM_OUTPUT"/usr/bin/bpm + mkdir -p "$BPM_OUTPUT"/etc/ + cp ../bpm.conf "$BPM_OUTPUT"/etc/bpm.conf }