2011-07-03 14:41:09 +02:00
|
|
|
---
|
2014-01-29 02:24:52 +01:00
|
|
|
name: "darkcoin"
|
2011-07-03 14:41:09 +02:00
|
|
|
suites:
|
2013-10-11 03:19:44 +02:00
|
|
|
- "precise"
|
2011-07-03 14:41:09 +02:00
|
|
|
architectures:
|
2013-10-11 03:19:44 +02:00
|
|
|
- "amd64"
|
2012-09-22 08:51:03 +02:00
|
|
|
packages:
|
2013-10-11 03:19:44 +02:00
|
|
|
- "mingw-w64"
|
|
|
|
- "g++-mingw-w64"
|
2011-07-03 14:41:09 +02:00
|
|
|
- "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:
|
2014-01-29 02:24:52 +01:00
|
|
|
- "url": "https://github.com/darkcoin-project/darkcoin.git"
|
|
|
|
"dir": "darkcoin"
|
2011-07-03 14:41:09 +02:00
|
|
|
files:
|
2013-10-11 03:19:44 +02:00
|
|
|
- "qt-win32-4.8.3-gitian-r4.zip"
|
2014-01-07 03:41:50 +01:00
|
|
|
- "boost-win32-1.55.0-gitian-r6.zip"
|
2013-10-11 03:19:44 +02:00
|
|
|
- "bitcoin-deps-win32-gitian-r9.zip"
|
2011-07-03 14:41:09 +02:00
|
|
|
script: |
|
|
|
|
#
|
2013-10-11 03:19:44 +02:00
|
|
|
STAGING=$HOME/staging
|
|
|
|
HOST=i686-w64-mingw32
|
2011-07-03 14:41:09 +02:00
|
|
|
#
|
2013-10-11 03:19:44 +02:00
|
|
|
mkdir -p $STAGING
|
|
|
|
cd $STAGING
|
|
|
|
unzip ../build/qt-win32-4.8.3-gitian-r4.zip
|
2014-01-07 03:41:50 +01:00
|
|
|
unzip ../build/boost-win32-1.55.0-gitian-r6.zip
|
2013-10-11 03:19:44 +02:00
|
|
|
unzip ../build/bitcoin-deps-win32-gitian-r9.zip
|
|
|
|
cd $HOME/build/
|
2011-12-24 05:23:12 +01:00
|
|
|
#
|
2014-01-29 02:24:52 +01:00
|
|
|
cd darkcoin
|
2013-10-11 03:19:44 +02:00
|
|
|
export PATH=$STAGING/host/bin:$PATH
|
2011-07-03 14:41:09 +02:00
|
|
|
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
|
2013-10-11 03:19:44 +02:00
|
|
|
ln -s $STAGING $HOME/qt
|
2014-01-29 02:24:52 +01:00
|
|
|
$HOME/staging/host/bin/qmake -spec unsupported/win32-g++-cross MINIUPNPC_LIB_PATH=$STAGING MINIUPNPC_INCLUDE_PATH=$STAGING BDB_LIB_PATH=$STAGING BDB_INCLUDE_PATH=$STAGING BOOST_LIB_PATH=$STAGING BOOST_INCLUDE_PATH=$STAGING BOOST_LIB_SUFFIX=-mt-s BOOST_THREAD_LIB_SUFFIX=_win32-mt-s OPENSSL_LIB_PATH=$STAGING OPENSSL_INCLUDE_PATH=$STAGING QRENCODE_LIB_PATH=$STAGING QRENCODE_INCLUDE_PATH=$STAGING USE_QRCODE=1 INCLUDEPATH=$STAGING DEFINES=BOOST_THREAD_USE_LIB BITCOIN_NEED_QT_PLUGINS=1 QMAKE_LRELEASE=lrelease QMAKE_CXXFLAGS=-frandom-seed=darkcoin USE_BUILD_INFO=1 USE_SSE2=1
|
2011-10-24 21:27:54 +02:00
|
|
|
make $MAKEOPTS
|
2014-01-29 02:24:52 +01:00
|
|
|
$HOST-strip release/darkcoin-qt.exe
|
|
|
|
cp release/darkcoin-qt.exe $OUTDIR/
|
2011-10-24 21:27:54 +02:00
|
|
|
#
|
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
|
2014-01-29 02:24:52 +01:00
|
|
|
make -f makefile.linux-mingw $MAKEOPTS DEPSDIR=$STAGING darkcoind.exe USE_UPNP=0 DEBUGFLAGS="-frandom-seed=darkcoin" USE_SSE2=1
|
|
|
|
$HOST-strip darkcoind.exe
|
2011-07-03 14:41:09 +02:00
|
|
|
mkdir $OUTDIR/daemon
|
2014-01-29 02:24:52 +01:00
|
|
|
cp darkcoind.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
|
2014-01-29 02:24:52 +01:00
|
|
|
cp ../share/darkcoin-*-win32-setup.exe $OUTDIR/
|