Update package version to 0.5.0
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Gitea repository
|
# Gitea repository
|
||||||
REPO="bubble-package-manager/bpm"
|
REPO="EnumDev/bpm"
|
||||||
|
|
||||||
# Get version from tag name using Gitea Rest API
|
# Get version from tag name using Gitea Rest API
|
||||||
VERSION=$(curl -s -L https://git.enumerated.dev/api/v1/repos/$REPO/tags/ | jq -r '.[0]'.name)
|
VERSION=$(curl -s -L https://git.enumerated.dev/api/v1/repos/$REPO/tags/ | jq -r '.[0]'.name)
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
name: bpm
|
name: bpm
|
||||||
description: A simple Linux package manager
|
description: A simple Linux package manager
|
||||||
version: 0.4.1
|
version: 0.5.0
|
||||||
revision: 2
|
url: https://git.enumerated.dev/EnumDev/bpm
|
||||||
url: https://gitlab.com/bubble-package-manager/bpm
|
|
||||||
license: MIT
|
license: MIT
|
||||||
architecture: any
|
architecture: any
|
||||||
|
depends: ["bash"]
|
||||||
make_depends: ["golang","git"]
|
make_depends: ["golang","git"]
|
||||||
optional_depends: ["fakeroot"]
|
optional_depends: ["fakeroot"]
|
||||||
keep: ["etc/bpm.conf"]
|
keep: ["etc/bpm.conf","etc/bpm-compilation.conf"]
|
||||||
type: source
|
type: source
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
# 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
|
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||||
|
|
||||||
REPO="https://gitlab.com/bubble-package-manager/bpm.git"
|
REPO="https://git.enumerated.dev/EnumDev/bpm.git"
|
||||||
|
|
||||||
# The prepare function is executed in the root of the temp directory
|
# 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 downloading files and putting them into the correct location
|
||||||
@@ -19,7 +19,11 @@ build() {
|
|||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
make DESTDIR="$BPM_OUTPUT" PREFIX=/usr SYSCONFDIR=/etc install
|
make install DESTDIR="$BPM_OUTPUT" PREFIX=/usr SYSCONFDIR=/etc
|
||||||
|
|
||||||
|
# Install configuration files
|
||||||
|
make install-config DESTDIR="$BPM_OUTPUT" PREFIX=/usr SYSCONFDIR=/etc
|
||||||
|
|
||||||
|
# Install package license
|
||||||
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/bpm/LICENSE
|
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/bpm/LICENSE
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user