aboutsummaryrefslogtreecommitdiff
path: root/core/git/build
blob: 66665b663a2ca2d208e1b2366cc1c06bc77871d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh -e

cat > config.mak <<EOF
NO_GETTEXT=YesPlease
NO_SVN_TESTS=YesPlease
NO_TCLTK=YesPlease
NO_EXPAT=YesPlease
NO_NSEC=YesPlease
NO_PYTHON=YesPlease
NO_SYS_POLL_H=1
NO_CROSS_DIRECTORY_HARDLINKS=1
NO_INSTALL_HARDLINKS=1
NO_CURL=
CURL_LDFLAGS=$(pkgconf --static --libs libcurl)
EOF

export LDFLAGS="$LDFLAGS -static"

./configure \
    --prefix=/usr \
    --with-curl \
    ac_cv_snprintf_returns_bogus=no \
    ac_cv_fread_reads_directories=yes

make
make DESTDIR="$1" install

# Install manual pages
clman -d "$1" man[0-9]/*.[0-9]