2011-07-03 14:41:09 +02:00
|
|
|
---
|
|
|
|
name: "bitcoin"
|
|
|
|
suites:
|
|
|
|
- "lucid"
|
|
|
|
architectures:
|
|
|
|
- "i386"
|
|
|
|
packages:
|
|
|
|
- "mingw32"
|
|
|
|
- "git-core"
|
|
|
|
- "unzip"
|
|
|
|
- "nsis"
|
2011-08-23 14:43:24 +02:00
|
|
|
- "faketime"
|
2011-07-03 14:41:09 +02:00
|
|
|
reference_datetime: "2011-01-30 00:00:00"
|
|
|
|
remotes:
|
|
|
|
- "url": "https://github.com/bitcoin/bitcoin.git"
|
|
|
|
"dir": "bitcoin"
|
|
|
|
files:
|
2011-10-10 18:07:30 +02:00
|
|
|
- "qt-win32-4.7.4-gitian.zip"
|
2012-08-27 20:09:26 +02:00
|
|
|
- "boost-win32-1.50.0-gitian2.zip"
|
2012-04-27 17:53:11 +02:00
|
|
|
- "bitcoin-deps-0.0.4.zip"
|
2011-07-03 14:41:09 +02:00
|
|
|
script: |
|
|
|
|
#
|
2011-10-10 18:07:30 +02:00
|
|
|
mkdir $HOME/qt
|
|
|
|
cd $HOME/qt
|
|
|
|
unzip ../build/qt-win32-4.7.4-gitian.zip
|
|
|
|
cd $HOME/build/
|
|
|
|
export PATH=$PATH:$HOME/qt/bin/
|
2011-08-23 14:42:11 +02:00
|
|
|
#
|
2012-08-27 20:09:26 +02:00
|
|
|
mkdir boost_1_50_0
|
|
|
|
cd boost_1_50_0
|
2011-08-23 14:42:11 +02:00
|
|
|
mkdir -p stage/lib
|
2012-08-27 20:09:26 +02:00
|
|
|
unzip ../boost-win32-1.50.0-gitian2.zip
|
2011-08-23 14:42:11 +02:00
|
|
|
cd bin/$GBUILD_BITS
|
|
|
|
for lib in *; do
|
|
|
|
i586-mingw32msvc-ar rc ../../stage/lib/libboost_${lib}-mt-s.a $lib/*.o
|
|
|
|
i586-mingw32msvc-ranlib ../../stage/lib/libboost_${lib}-mt-s.a
|
|
|
|
done
|
|
|
|
cd ../..
|
|
|
|
mv include/boost .
|
2011-07-03 14:41:09 +02:00
|
|
|
cd ..
|
|
|
|
#
|
2012-04-27 17:53:11 +02:00
|
|
|
unzip bitcoin-deps-0.0.4.zip
|
2011-07-03 14:41:09 +02:00
|
|
|
#
|
2012-02-07 17:52:40 +01:00
|
|
|
find -type f | xargs touch --date="$REFERENCE_DATETIME"
|
2011-12-24 05:23:12 +01:00
|
|
|
#
|
2011-07-03 14:41:09 +02:00
|
|
|
cd bitcoin
|
|
|
|
mkdir -p $OUTDIR/src
|
2012-04-07 02:06:53 +02:00
|
|
|
git archive HEAD | tar -x -C $OUTDIR/src
|
2011-07-03 14:41:09 +02:00
|
|
|
cp $OUTDIR/src/doc/README_windows.txt $OUTDIR/readme.txt
|
2012-07-22 23:49:09 +02:00
|
|
|
cp $OUTDIR/src/COPYING $OUTDIR/COPYING.txt
|
2011-10-29 17:25:49 +02:00
|
|
|
export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
|
|
|
|
export FAKETIME=$REFERENCE_DATETIME
|
|
|
|
export TZ=UTC
|
2012-08-27 20:09:26 +02:00
|
|
|
$HOME/qt/src/bin/qmake -spec unsupported/win32-g++-cross MINIUPNPC_LIB_PATH=$HOME/build/miniupnpc MINIUPNPC_INCLUDE_PATH=$HOME/build/ BDB_LIB_PATH=$HOME/build/db-4.8.30.NC/build_unix BDB_INCLUDE_PATH=$HOME/build/db-4.8.30.NC/build_unix BOOST_LIB_PATH=$HOME/build/boost_1_50_0/stage/lib BOOST_INCLUDE_PATH=$HOME/build/boost_1_50_0 BOOST_LIB_SUFFIX=-mt-s BOOST_THREAD_LIB_SUFFIX=_win32-mt-s OPENSSL_LIB_PATH=$HOME/build/openssl-1.0.1b OPENSSL_INCLUDE_PATH=$HOME/build/openssl-1.0.1b/include QRENCODE_LIB_PATH=$HOME/build/qrencode-3.2.0/.libs QRENCODE_INCLUDE_PATH=$HOME/build/qrencode-3.2.0 USE_QRCODE=1 INCLUDEPATH=$HOME/build DEFINES=BOOST_THREAD_USE_LIB BITCOIN_NEED_QT_PLUGINS=1 QMAKE_LRELEASE=lrelease QMAKE_CXXFLAGS=-frandom-seed=bitcoin QMAKE_LFLAGS=-frandom-seed=bitcoin USE_BUILD_INFO=1
|
2011-10-24 21:27:54 +02:00
|
|
|
make $MAKEOPTS
|
|
|
|
cp release/bitcoin-qt.exe $OUTDIR/
|
|
|
|
#
|
2011-07-03 14:41:09 +02:00
|
|
|
cd src
|
2011-08-23 14:43:24 +02:00
|
|
|
export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
|
|
|
|
export FAKETIME=$REFERENCE_DATETIME
|
|
|
|
export TZ=UTC
|
2012-04-07 02:06:53 +02:00
|
|
|
make -f makefile.linux-mingw $MAKEOPTS DEPSDIR=$HOME/build bitcoind.exe USE_UPNP=0 DEBUGFLAGS="-frandom-seed=bitcoin"
|
2011-07-03 14:41:09 +02:00
|
|
|
i586-mingw32msvc-strip bitcoind.exe
|
|
|
|
mkdir $OUTDIR/daemon
|
|
|
|
cp bitcoind.exe $OUTDIR/daemon
|
2012-04-07 02:06:53 +02:00
|
|
|
cd ..
|
|
|
|
mkdir nsis
|
|
|
|
git archive HEAD | tar -x -C nsis
|
|
|
|
cd nsis/src
|
|
|
|
mkdir ../release
|
|
|
|
cp ../../release/* ../release/
|
|
|
|
cp ../../src/*.exe .
|
|
|
|
makensis ../share/setup.nsi
|
|
|
|
cp ../share/bitcoin-*-win32-setup.exe $OUTDIR/
|