Switch to new download format

This commit is contained in:
2025-10-27 18:23:12 +02:00
parent f6c46de93c
commit 506f36da73
2 changed files with 17 additions and 15 deletions
+14 -3
View File
@@ -1,9 +1,20 @@
name: file name: file
description: File type detection program description: File type detection program
version: 5.46 version: "5.46"
revision: 2
url: https://www.darwinsys.com/file/ url: https://www.darwinsys.com/file/
license: Custom license: Custom
architecture: any architecture: any
depends: ["glibc","bzip2","xz-utils","zlib"]
make_depends: ["bash","binutils","bzip2","coreutils","diffutils","gawk","gcc","glibc","grep","make","sed","xz-utils","zlib"]
type: source type: source
depends:
- bzip2
- glibc
- libseccomp
- xz-utils
- zlib
- zstd
downloads:
- url: https://astron.com/pub/file/file-${BPM_PKG_VERSION}.tar.gz
extract_to: ${BPM_SOURCE}
extract_strip_components: 1
checksum: c9cc77c7c560c543135edc555af609d5619dbef011997e988ce40a3d75d86088
+3 -12
View File
@@ -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 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
DOWNLOAD="https://astron.com/pub/file/file-${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 build function is executed in the source directory # The build function is executed in the source directory
# This function is used to compile the source code # This function is used to compile the source code
build() { build() {
@@ -29,6 +19,7 @@ check() {
# 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" install make DESTDIR="$BPM_OUTPUT" install
mkdir -p "$BPM_OUTPUT"/usr/share/licenses/file
cp COPYING "$BPM_OUTPUT"/usr/share/licenses/file/COPYING # Install package license
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/file/COPYING
} }