mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 08:55:07 +03:00
51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
distributable:
|
|
url: https://www.gnupg.org/ftp/gcrypt/gnutls/v{{ version.major }}.{{ version.minor }}/gnutls-{{ version.raw }}.tar.xz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
#TODO HTML listing: https://ftp.gnu.org/gnu/gnutls/
|
|
- 3.6.16
|
|
|
|
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:
|
|
tea.xyz/gx/cc: c99
|
|
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
|
|
- bin/srptool
|