#!/bin/bash
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libminiupnpc-dev libgmp3-dev libdb-dev libdb++-dev libgmp3-dev lzma-dev zlib1g-dev zlib1g libgmp-dev
git clone https://github.com/memeticofficial/pepecoin-memetic.git
cd ~/pepecoin-memetic/src
wget https://www.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz
tar xvf openssl-1.0.2u.tar.gz
mv openssl-1.0.2u openssl
cd openssl
./Configure linux-x86_64
make
cd ..
export OPENSSL_INCLUDE_PATH="./openssl/include"
export OPENSSL_LIB_PATH="./openssl"
make -f makefile.unix USE_UPNP=1
#strip pepecoind
echo "Run ./pepecoind help for more info"
