diff --git a/pkg.info b/pkg.info index d0aad6d..2d22037 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,22 @@ name: libarchive description: Multi-format archive and compression library -version: 3.8.1 -revision: 2 +version: 3.8.2 +revision: 1 url: https://libarchive.org/ license: BSD architecture: any -depends: ["acl","bzip2","libxml2","lz4","openssl","xz-utils","zlib","zstd"] type: source +depends: + - acl + - bzip2 + - libxml2 + - lz4 + - openssl + - xz-utils + - zlib + - zstd +downloads: + - url: https://github.com/libarchive/libarchive/releases/download/v${BPM_PKG_VERSION}/libarchive-${BPM_PKG_VERSION}.tar.xz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: db0dee91561cbd957689036a3a71281efefd131d35d1d98ebbc32720e4da58e2 diff --git a/source.sh b/source.sh index 964b82a..674af36 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://github.com/libarchive/libarchive/releases/download/v${BPM_PKG_VERSION}/libarchive-${BPM_PKG_VERSION}.tar.xz" -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() {