From c38faa9120cf533d4401fb2d6f2d0651813ec790 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Fri, 2 Jun 2023 23:04:28 +0200 Subject: gnupg2: fix shellcheck error --- extra/gnupg2/build | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/extra/gnupg2/build b/extra/gnupg2/build index da3d3351..972daaed 100755 --- a/extra/gnupg2/build +++ b/extra/gnupg2/build @@ -1,13 +1,16 @@ #!/bin/sh -e export LDFLAGS="$LDFLAGS -static" -export LIBGNUTLS_CFLAGS="$(pkgconf --static --cflags gnutls)" -export LIBGNUTLS_LIBS="$(pkgconf --static --libs gnutls)" + +if cpt l gnutls; then + LIBGNUTLS_CFLAGS="$(pkgconf --static --cflags gnutls)" + LIBGNUTLS_LIBS="$(pkgconf --static --libs gnutls)" + export LIBGNUTLS_CFLAGS LIBGNUTLS_LIBS +fi ./configure \ --prefix=/usr \ --sbindir=/usr/bin \ - # --disable-gnutls make make DESTDIR="$1" install -- cgit v1.2.3