aboutsummaryrefslogtreecommitdiff
path: root/extra/gnutls
diff options
context:
space:
mode:
Diffstat (limited to 'extra/gnutls')
-rwxr-xr-xextra/gnutls/build38
-rw-r--r--extra/gnutls/checksums2
-rw-r--r--extra/gnutls/depends2
-rw-r--r--extra/gnutls/meta3
-rw-r--r--extra/gnutls/sources1
-rw-r--r--extra/gnutls/version1
6 files changed, 47 insertions, 0 deletions
diff --git a/extra/gnutls/build b/extra/gnutls/build
new file mode 100755
index 00000000..5bc90d9a
--- /dev/null
+++ b/extra/gnutls/build
@@ -0,0 +1,38 @@
+#!/bin/sh -e
+
+# We have multiple issues thanks to p11-kit.
+# - p11-kit does not support static linking (instead of writing proper code that
+# just works they have decided to go out of their way to make sure you can't
+# statically link it), so if you build the static gnutls library with it, you
+# can link nothing to gnutls statically.
+# - If you build gnutls without p11-kit, you can't compile glib-networking as it
+# depends on the PKCS#11 API in gnutls that they don't even have enabled by
+# default.
+# - If libressl was fully compatible with openssl, we wouldn't have to use
+# gnutls for glib-networking, therefore removing the p11-kit dependency.
+
+./configure \
+ --prefix=/usr \
+ --disable-nls \
+ --with-nettle-mini \
+ --with-included-libtasn1 \
+ --with-included-unistring \
+ --disable-guile \
+ --disable-static
+
+make
+make DESTDIR="$1" install
+
+./configure \
+ --prefix=/usr \
+ --disable-nls \
+ --with-nettle-mini \
+ --with-included-libtasn1 \
+ --with-included-unistring \
+ --disable-guile \
+ --enable-static \
+ --disable-shared \
+ --without-p11-kit
+
+make
+make DESTDIR="$1" install
diff --git a/extra/gnutls/checksums b/extra/gnutls/checksums
new file mode 100644
index 00000000..70703528
--- /dev/null
+++ b/extra/gnutls/checksums
@@ -0,0 +1,2 @@
+%BLAKE3
+38e71ca2ea8303ffdeb0d761a2b25fadf992e6ddd52092f15a6d495c332d9840 gnutls-3.8.1.tar.xz
diff --git a/extra/gnutls/depends b/extra/gnutls/depends
new file mode 100644
index 00000000..9dafebcb
--- /dev/null
+++ b/extra/gnutls/depends
@@ -0,0 +1,2 @@
+nettle
+p11-kit
diff --git a/extra/gnutls/meta b/extra/gnutls/meta
new file mode 100644
index 00000000..11c31cf2
--- /dev/null
+++ b/extra/gnutls/meta
@@ -0,0 +1,3 @@
+description: GNU TLS library implementation
+license: GPL-3.0-or-later, LGPL-2.1-or-later
+maintainer: Cem Keylan <cem@carbslinux.org>
diff --git a/extra/gnutls/sources b/extra/gnutls/sources
new file mode 100644
index 00000000..89e7d02b
--- /dev/null
+++ b/extra/gnutls/sources
@@ -0,0 +1 @@
+https://www.gnupg.org/ftp/gcrypt/gnutls/v3.8/gnutls-3.8.1.tar.xz
diff --git a/extra/gnutls/version b/extra/gnutls/version
new file mode 100644
index 00000000..aecb372e
--- /dev/null
+++ b/extra/gnutls/version
@@ -0,0 +1 @@
+3.8.1 1