Switch to new download format
This commit is contained in:
@@ -1 +0,0 @@
|
||||
ARCH=any
|
||||
@@ -3,5 +3,11 @@ description: /etc/protocols and /etc/services provided by IANA
|
||||
version: 20250826
|
||||
url: https://www.iana.org/protocols
|
||||
architecture: any
|
||||
output_architecture: any
|
||||
make_depends: ["coreutils"]
|
||||
downloads:
|
||||
- url: "https://github.com/Mic92/iana-etc/releases/download/${BPM_PKG_VERSION}/iana-etc-${BPM_PKG_VERSION}.tar.gz"
|
||||
extract_to_bpm_source: true
|
||||
extract_strip_components: 1
|
||||
checksum: d42525661c002c67d82d2e93fb99e1a58c91f47e9b2cff796f3092a4177a8666
|
||||
type: source
|
||||
|
||||
@@ -2,16 +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
|
||||
|
||||
DOWNLOAD="https://github.com/Mic92/iana-etc/releases/download/${BPM_PKG_VERSION}/iana-etc-${BPM_PKG_VERSION}.tar.gz"
|
||||
FILENAME="${DOWNLOAD##*/}"
|
||||
|
||||
# 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() {
|
||||
wget "$DOWNLOAD"
|
||||
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
||||
}
|
||||
|
||||
# The package function is executed in the source directory
|
||||
# This function is used to move the compiled files into the output directory
|
||||
package() {
|
||||
|
||||
Reference in New Issue
Block a user