aboutsummaryrefslogtreecommitdiff
path: root/extra/gnupg2/build
blob: 5ad311a154fe4ffbd7abb0eeeffc8726fa10efe3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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

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

make
make DESTDIR="$1" install