2023-02-06 06:48:14 +03:00
|
|
|
distributable:
|
2023-05-08 18:17:44 +03:00
|
|
|
url: https://www.gnupg.org/ftp/gcrypt/gnutls/v{{ version.marketing }}/gnutls-{{ version.raw }}.tar.xz
|
2023-02-06 06:48:14 +03:00
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
2023-05-08 18:17:44 +03:00
|
|
|
gitlab: gnutls/gnutls/tags
|
2023-02-06 06:48:14 +03:00
|
|
|
|
|
|
|
dependencies:
|
|
|
|
freedesktop.org/p11-kit: '*'
|
|
|
|
gnu.org/libidn2: '*'
|
|
|
|
gnu.org/libunistring: ^1
|
|
|
|
gnu.org/libtasn1: ^4
|
|
|
|
gnu.org/nettle: '*'
|
|
|
|
gnu.org/gettext: '*'
|
|
|
|
gnu.org/gmp: '*'
|
|
|
|
unbound.net: ^1
|
|
|
|
curl.se/ca-certs: '*'
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
2023-08-06 08:57:42 +03:00
|
|
|
darwin:
|
|
|
|
tea.xyz/gx/cc: c99
|
|
|
|
linux:
|
|
|
|
gnu.org/gcc: '*'
|
2023-02-06 06:48:14 +03:00
|
|
|
tea.xyz/gx/make: '*'
|
|
|
|
freedesktop.org/pkg-config: '*'
|
|
|
|
script: |
|
|
|
|
# clang doesn't like the -march=all flag
|
|
|
|
if test "{{hw.platform}}+{{hw.arch}}" = "linux+aarch64"; then
|
|
|
|
cd lib/accelerated/aarch64/
|
|
|
|
sed -i.bak -e 's/-march=all/-mcpu=generic/' Makefile.am Makefile.in
|
|
|
|
rm Makefile.am.bak Makefile.in.bak
|
|
|
|
cd ../../..
|
|
|
|
fi
|
|
|
|
|
|
|
|
#FIXME: use similar logic to the one in openssl.org/x509_def.c to
|
|
|
|
# locate {{deps.curl.se/ca-certs.prefix}}/ssl/cert.pem
|
|
|
|
|
|
|
|
./configure --prefix={{ prefix }} --disable-guile
|
|
|
|
make --jobs {{ hw.concurrency }} install
|
|
|
|
|
|
|
|
test: gnutls-cli --x509cafile={{deps.curl.se/ca-certs.prefix}}/ssl/cert.pem tea.xyz <<< "GET /"
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/certtool
|
|
|
|
- bin/danetool
|
|
|
|
- bin/gnutls-cli
|
|
|
|
- bin/gnutls-cli-debug
|
|
|
|
- bin/gnutls-serv
|
|
|
|
- bin/ocsptool
|
|
|
|
- bin/p11tool
|
|
|
|
- bin/psktool
|