-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathbuild.sh
46 lines (37 loc) · 1.19 KB
/
build.sh
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
# NO_INSTALL_HARDLINKS uses symlinks which makes the package 85MB slimmer (8MB instead of 93MB!)
# pcre-feedstock recipe does not include --enable-jit
export NO_LIBPCRE1_JIT=1
pushd code
# Add a place for git config files.
mkdir -p $PREFIX/etc
make configure
./configure \
--prefix="${PREFIX}" \
--with-gitattributes="${PREFIX}/etc/gitattributes" \
--with-gitconfig="${PREFIX}/etc/gitconfig" \
--with-libpcre1 \
--with-iconv="${PREFIX}/lib" \
--with-perl="${PREFIX}/bin/perl" \
--with-tcltk="${PREFIX}/bin/tclsh"
make \
--jobs="$CPU_COUNT" \
NO_INSTALL_HARDLINKS=1 \
all strip install
# build osxkeychain
if [[ $(uname) == "Darwin" ]]; then
pushd contrib/credential/osxkeychain
make -e
cp -avf git-credential-osxkeychain $PREFIX/bin
popd
fi
git config --system http.sslVerify true
git config --system http.sslCAPath "${PREFIX}/ssl/cacert.pem"
git config --system http.sslCAInfo "${PREFIX}/ssl/cacert.pem"
# Install completion files
mkdir -p $PREFIX/share/bash-completion/completions
cp contrib/completion/git-completion.bash $PREFIX/share/bash-completion/completions/git
popd # code
# Install manpages
mkdir -p $PREFIX/man
cp -r manpages/* $PREFIX/man