diff --git a/pkg.info b/pkg.info index 249e03b..93c6d7d 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,20 @@ name: p11-kit description: Loads and enumerates PKCS#11 modules -version: 0.25.9 +version: 0.25.10 +revision: 1 url: https://p11-glue.freedesktop.org/ license: BSD architecture: any -depends: ["glibc","libffi","libtasn1"] -make_depends: ["meson","gnutls"] type: source +depends: + - glibc + - libffi + - libtasn1 +make_depends: + - meson + - gnutls +downloads: + - url: https://github.com/p11-glue/p11-kit/releases/download/${BPM_PKG_VERSION}/p11-kit-${BPM_PKG_VERSION}.tar.xz + extract_to_bpm_source: true + extract_strip_components: 1 + checksum: a62a137a966fb3a9bbfa670b4422161e369ddea216be51425e3be0ab2096e408 diff --git a/source.sh b/source.sh index 9df031a..efba304 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/p11-glue/p11-kit/releases/download/${BPM_PKG_VERSION}/p11-kit-${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() {