aboutsummaryrefslogtreecommitdiff
path: root/extra/gnupg2/build
blob: e112d1265e1b4cbf414242c18955483f3d7df030 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -e

export LDFLAGS="$LDFLAGS -static"

if cpt l gnutls; then
    LIBGNUTLS_CFLAGS="$(pkgconf --static --cflags gnutls)"
    LIBGNUTLS_LIBS="$(pkgconf --static --libs gnutls)"
    export LIBGNUTLS_CFLAGS LIBGNUTLS_LIBS
fi

patch -p1 < fix-ldap.patch

./configure \
    --prefix=/usr \
    --sbindir=/usr/bin

make
make DESTDIR="$1" install