-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.sh
executable file
·69 lines (53 loc) · 1.29 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/bash
# Terminal colors
RED=`tput setaf 1`
GREEN=`tput setaf 2`
BLUE=`tput setaf 4`
RESET=`tput sgr0`
set -e
git submodule update --init --recursive
source set_build_paths.sh
echo "${BLUE}== bc-crypto-base ==${RESET}"
pushd deps/bc-crypto-base
./configure --prefix ${SYSROOT}
make check
make install
popd
echo "${BLUE}== bc-ur ==${RESET}"
pushd deps/bc-ur
./configure --prefix ${SYSROOT}
make check
make install
popd
echo "${BLUE}== libwally-core ==${RESET}"
pushd deps/libwally-core
git submodule init
git submodule sync --recursive
git submodule update --init --recursive
./tools/autogen.sh
if [[ "$OSTYPE" == "msys" ]]; then
# FIXME: figure out how to disable PTHREADS instead of tests
./configure "${WALLY_CONFIGURE-}" --disable-tests --disable-shared --prefix ${SYSROOT}
else
./configure "${WALLY_CONFIGURE-}" --disable-shared --prefix ${SYSROOT}
fi
make
make check
make install
popd
echo "${BLUE}== argp-standalone ==${RESET}"
pushd deps/argp-standalone/argp-standalone
set +e
patch -N <../patch-argp-fmtstream.h
set -e
./configure --prefix ${SYSROOT}
make install
cp libargp.a ${SYSROOT}/lib/
cp argp.h ${SYSROOT}/include/
popd
echo "${BLUE}== keytool ==${RESET}"
./configure
make clean
make check
echo "${GREEN}*** Keytool built.${RESET}"
echo "${GREEN}Next step: sudo make install${RESET}"