# Contributor: Ɓukasz Jendrysik # Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=nettle pkgver=3.9.1 pkgrel=0 pkgdesc="Low-level cryptographic library" url="https://www.lysator.liu.se/~nisse/nettle/" arch="all" license="GPL-2.0-or-later OR LGPL-3.0-or-later" depends_dev="gmp-dev" makedepends="$depends_dev m4" subpackages="$pkgname-static $pkgname-dev $pkgname-utils" source="https://ftp.gnu.org/gnu/nettle/nettle-$pkgver.tar.gz" # secfixes: # 3.7.3-r0: # - CVE-2021-3580 # 3.7.2-r0: # - CVE-2021-20305 build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --libdir=/usr/lib \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --enable-fat \ --enable-shared \ --disable-openssl \ --enable-static make # strip comments in fields from .pc as it confuses pkgconf sed -i -e 's/ \#.*//' ./*.pc } check() { make -C examples # required for rsa-encrypt make check } package() { make DESTDIR="$pkgdir" install } utils() { pkgdesc="Utils for nettle" amove usr/bin } sha512sums=" 5939c4b43cf9ff6c6272245b85f123c81f8f4e37089fa4f39a00a570016d837f6e706a33226e4bbfc531b02a55b2756ff312461225ed88de338a73069e031ced nettle-3.9.1.tar.gz "