pkgname=nettle pkgver=3.10 pkgrel=1 pkgdesc="A low-level cryptographic library" arch=('x86_64') url="https://www.lysator.liu.se/~nisse/nettle" license=('LGPL-3.0-or-later OR GPL-2.0-or-later') depends=('glibc' 'gmp') source=(https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz) sha256sums=(b4c518adb174e484cb4acea54118f02380c7133771e7e9beb98a0787194ee47c) build() { cd ${pkgname}-${pkgver} local configure_args=( --disable-static ${configure_options} ) ./configure ${configure_args[@]} make } package() { cd ${pkgname}-${pkgver} make DESTDIR=${pkgdir} install chmod -v 755 ${pkgdir}/usr/lib64/lib{hogweed,nettle}.so install -v -m755 -d ${pkgdir}/usr/share/doc/${pkgname}-${pkgver} install -v -m644 nettle.{html,pdf} ${pkgdir}/usr/share/doc/${pkgname}-${pkgver} }