🔒 Repository is read-only – file editing is disabled.

recipes/core/nettle/PAGBUILD.yaml main

35 linii Raw ← Powrót
1234567891011121314151617181920212223242526272829303132333435
pkgname: nettle
pkgver: '4.0'
pkgrel: '1'
pkgdesc: 'Low-level cryptographic library that is designed to fit easily in many contexts.'
url: 'https://www.lysator.liu.se/~nisse/nettle/'
arch: x86_64
depends: []
makedepends:
- gmp
- m4

source:
- 'https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz'

sha256sums:
- 3addbc00da01846b232fb3bc453538ea5468da43033f21bb345cb1e9073f5094

build: |
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr
  make
  make DESTDIR=${PKGDIR} install

package: |
  chmod -v 755 ${PKGDIR}/usr/lib/lib{hogweed,nettle}.so
  install -v -m755 -d ${PKGDIR}/usr/share/doc/nettle-${pkgver}
  install -v -m644 ${pkgname}-${pkgver}/nettle.html ${PKGDIR}/usr/share/doc/nettle-${pkgver}

update: |
  local url ext
  url="https://ftp.gnu.org/gnu/${pkgname}/"
  ext=".tar.gz"
  lynx -read_timeout=20 -dump -listonly -nonumbers \
  $url?C=M\;O=A|grep ${pkgname}-[0-9]|grep [0-9]$ext$| \
  sed "s@$url${pkgname}-@@"|sed "s@$ext@@"|tail -1