aboutsummaryrefslogtreecommitdiff
path: root/extra/gnupg2/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2023-06-02 23:04:28 +0200
committerCem Keylan <cem@ckyln.com>2023-06-02 23:04:28 +0200
commitc38faa9120cf533d4401fb2d6f2d0651813ec790 (patch)
tree21f49110869ac94cf663ddb5bb7fadb025d146c0 /extra/gnupg2/build
parent047a90cc7476335a5b745c7f9a65e6e157ed8ea8 (diff)
downloadrepository-c38faa9120cf533d4401fb2d6f2d0651813ec790.tar.gz
gnupg2: fix shellcheck error
Diffstat (limited to 'extra/gnupg2/build')
-rwxr-xr-xextra/gnupg2/build9
1 files 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