diff --git a/pkg.info b/pkg.info index 7573047..53c319d 100644 --- a/pkg.info +++ b/pkg.info @@ -1,8 +1,25 @@ name: gnutls description: A secure communications library -version: 3.8.10 +version: 3.8.11 +revision: 1 url: https://www.gnutls.org/ license: GPL3-or-later and LGPL2.1-or-later architecture: any -depends: ["brotli","gcc-libs", "glibc", "gmp", "libidn2", "p11-kit", "libtasn1", "libunistring", "nettle", "zlib", "zstd"] type: source +depends: + - brotli + - gcc-libs + - glibc + - gmp + - libidn2 + - p11-kit + - libtasn1 + - libunistring + - nettle + - zlib + - zstd +downloads: + - url: https://www.gnupg.org/ftp/gcrypt/gnutls/v${BPM_PKG_VERSION%.*}/gnutls-${BPM_PKG_VERSION}.tar.xz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 91bd23c4a86ebc6152e81303d20cf6ceaeb97bc8f84266d0faec6e29f17baa20 diff --git a/source.sh b/source.sh index 10f3101..27ee680 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://www.gnupg.org/ftp/gcrypt/gnutls/v${BPM_PKG_VERSION%.*}/gnutls-${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() { @@ -30,5 +20,6 @@ check() { package() { make DESTDIR="$BPM_OUTPUT" install + # Install package license install -Dm644 "$BPM_SOURCE"/COPYING.LESSERv2 "$BPM_OUTPUT"/usr/share/licenses/gnutls/COPYING.LESSERv2 }