Repository navigation
Expand file tree
/
Copy pathbuild.sh
More file actions
55 lines (46 loc) · 1.38 KB
/
Copy pathbuild.sh
File metadata and controls
55 lines (46 loc) · 1.38 KB
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
# Run in the same environment where setup.sh was used to build everything
set -e
ROOT_SRC=`pwd`/src
ROOT_LIB=`pwd`/lib
QT_TAG=v5.3.1
OPENSSL_TAG=OpenSSL_1_0_1h
TOR_BRANCH=origin/release-0.2.4
cd $ROOT_SRC
# Build Qt
cd qt5
git fetch
git checkout ${QT_TAG}
git submodule update
./configure -opensource -confirm-license -static -no-qml-debug -no-pkg-config -qt-zlib -qt-libpng -qt-libjpeg -qt-freetype -no-nis -no-openssl -qt-pcre -qt-xcb -qt-xkbcommon -nomake tests -nomake examples -no-cups -prefix "${ROOT_LIB}/qt5/"
time make -j9
make install
cd ..
# Build Openssl
cd openssl
git fetch
git checkout ${OPENSSL_TAG}
# 32bit may need to use ./Configure and linux-generic32 if setarch isn't handled properly
./config no-shared no-zlib --prefix="${ROOT_LIB}/openssl/" -fPIC
make
make install
cd ..
# Build Tor
cd tor
git fetch
git checkout ${TOR_BRANCH}
./autogen.sh
CFLAGS=-fPIC ./configure --with-openssl-dir="${ROOT_LIB}/openssl/" --enable-static-libevent --enable-static-openssl --with-libevent-dir=/usr/lib/`gcc -print-multiarch`/ --disable-asciidoc
make -j9
cd ..
# Build Ricochet
cd ricochet
git pull
RICOCHET_VERSION="`git describe --tags HEAD`"
cat > .packagingrc << EOF
export MAKEOPTS=-j9
export PATH=${ROOT_LIB}/qt5/bin/:$PATH
export TOR_BINARY=${ROOT_SRC}/tor/src/or/tor
export QMAKEOPTS='OPENSSLDIR="${ROOT_LIB}/openssl/"'
export VERSION=${RICOCHET_VERSION}
EOF
./packaging/linux-static/release.sh