2011-02-01 18:27:14 +01:00
|
|
|
---
|
|
|
|
name: "bitcoin"
|
|
|
|
suites:
|
2014-01-14 13:20:30 +01:00
|
|
|
- "precise"
|
2011-02-01 18:27:14 +01:00
|
|
|
architectures:
|
|
|
|
- "i386"
|
|
|
|
- "amd64"
|
|
|
|
packages:
|
2011-10-14 17:38:37 +02:00
|
|
|
- "qt4-qmake"
|
|
|
|
- "libqt4-dev"
|
2011-10-24 16:43:38 +02:00
|
|
|
- "libboost-system-dev"
|
|
|
|
- "libboost-filesystem-dev"
|
|
|
|
- "libboost-program-options-dev"
|
|
|
|
- "libboost-thread-dev"
|
2013-05-28 01:55:01 +02:00
|
|
|
- "libboost-test-dev"
|
2011-02-01 18:27:14 +01:00
|
|
|
- "libssl-dev"
|
|
|
|
- "git-core"
|
2011-08-23 14:33:53 +02:00
|
|
|
- "unzip"
|
2012-02-15 20:42:51 +01:00
|
|
|
- "pkg-config"
|
2013-05-28 01:55:01 +02:00
|
|
|
- "autoconf2.13"
|
|
|
|
- "libtool"
|
|
|
|
- "automake"
|
|
|
|
- "faketime"
|
2013-09-10 21:15:10 +02:00
|
|
|
- "bsdmainutils"
|
2013-07-22 08:50:39 +02:00
|
|
|
reference_datetime: "2013-06-01 00:00:00"
|
2011-02-01 18:27:14 +01:00
|
|
|
remotes:
|
|
|
|
- "url": "https://github.com/bitcoin/bitcoin.git"
|
|
|
|
"dir": "bitcoin"
|
|
|
|
files:
|
2014-01-15 21:51:37 +01:00
|
|
|
- "bitcoin-deps-linux32-gitian-r1.zip"
|
|
|
|
- "bitcoin-deps-linux64-gitian-r1.zip"
|
2011-02-01 18:27:14 +01:00
|
|
|
script: |
|
2013-05-28 01:55:01 +02:00
|
|
|
STAGING="$HOME/install"
|
2014-01-14 13:20:30 +01:00
|
|
|
OPTFLAGS='-O2'
|
2014-01-15 10:12:24 +01:00
|
|
|
BINDIR="${OUTDIR}/bin/${GBUILD_BITS}" # 32/64 bit build specific output directory
|
2013-05-28 01:55:01 +02:00
|
|
|
export LIBRARY_PATH="$STAGING/lib"
|
2014-01-15 10:12:24 +01:00
|
|
|
mkdir -p ${BINDIR}
|
2011-04-28 01:26:14 +02:00
|
|
|
#
|
2014-01-15 10:12:24 +01:00
|
|
|
mkdir -p $STAGING
|
|
|
|
cd $STAGING
|
2014-01-15 21:51:37 +01:00
|
|
|
unzip ../build/bitcoin-deps-linux${GBUILD_BITS}-gitian-r1.zip
|
2014-01-15 10:12:24 +01:00
|
|
|
cd ../build
|
2014-01-14 13:20:30 +01:00
|
|
|
#
|
2011-04-28 01:26:14 +02:00
|
|
|
cd bitcoin
|
2013-05-28 01:55:01 +02:00
|
|
|
export TAR_OPTIONS=--mtime=`echo $REFERENCE_DATETIME | awk '{ print $1 }'`
|
|
|
|
./autogen.sh
|
2014-01-15 10:12:24 +01:00
|
|
|
./configure --prefix=$STAGING --bindir=$BINDIR --with-protoc-bindir=$STAGING/host/bin --disable-maintainer-mode --disable-dependency-tracking PKG_CONFIG_PATH="$STAGING/lib/pkgconfig" CPPFLAGS="-I$STAGING/include ${OPTFLAGS}" LDFLAGS="-L$STAGING/lib ${OPTFLAGS}" CXXFLAGS="-frandom-seed=bitcoin ${OPTFLAGS}"
|
2013-05-28 01:55:01 +02:00
|
|
|
make dist
|
|
|
|
mkdir -p distsrc
|
|
|
|
cd distsrc
|
|
|
|
tar --strip-components=1 -xf ../bitcoin-*.tar.*
|
2014-01-15 10:12:24 +01:00
|
|
|
./configure --prefix=$STAGING --bindir=$BINDIR --with-protoc-bindir=$STAGING/host/bin --disable-maintainer-mode --disable-dependency-tracking PKG_CONFIG_PATH="$STAGING/lib/pkgconfig" CPPFLAGS="-I$STAGING/include ${OPTFLAGS}" LDFLAGS="-L$STAGING/lib ${OPTFLAGS}" CXXFLAGS="-frandom-seed=bitcoin ${OPTFLAGS}"
|
2011-10-14 17:38:37 +02:00
|
|
|
make $MAKEOPTS
|
2013-05-28 01:55:01 +02:00
|
|
|
make $MAKEOPTS install-strip
|
|
|
|
mkdir -p $OUTDIR/src
|
|
|
|
cp ../bitcoin-*.tar.* $OUTDIR/src
|