forked from HashArchive/Einsteinium-Unlimited
-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.sh
executable file
·28 lines (24 loc) · 895 Bytes
/
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
#!/bin/bash
# EMC2 build script for Ubuntu & Debian 9 v.3 (c) Decker (and webworker)
berkeleydb () {
EMC2_ROOT=$(pwd)
EMC2_PREFIX="${EMC2_ROOT}/db4"
mkdir -p $EMC2_PREFIX
wget -N 'http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz'
echo '12edc0df75bf9abd7f82f821795bcee50f42cb2e5f76a6a281b85732798364ef db-4.8.30.NC.tar.gz' | sha256sum -c
tar -xzvf db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix/
../dist/configure -enable-cxx -disable-shared -with-pic -prefix=$EMC2_PREFIX
make install
cd $EMC2_ROOT
}
buildemc2 () {
git pull
make clean
./autogen.sh
./configure LDFLAGS="-L${EMC2_PREFIX}/lib/" CPPFLAGS="-I${EMC2_PREFIX}/include/" --with-gui=no --disable-tests --disable-bench --without-miniupnpc --enable-experimental-asm --enable-static --disable-shared
make -j$(nproc)
}
berkeleydb
buildemc2
echo "Done building EMC2!"