diff --git a/pkg.info b/pkg.info index da7f520..c3a7ae6 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,20 @@ name: file description: File type detection program -version: 5.46 +version: "5.46" +revision: 2 url: https://www.darwinsys.com/file/ license: Custom 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 +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 diff --git a/source.sh b/source.sh index d59ad16..c85ae8c 100644 --- a/source.sh +++ b/source.sh @@ -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://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 # This function is used to compile the source code build() { @@ -29,6 +19,7 @@ check() { # This function is used to move the compiled files into the output directory package() { 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 }