aboutsummaryrefslogtreecommitdiff
path: root/contrib/gitian-descriptors/gitian.yml
blob: 47704bea29da62f853e2c55bc547e8d8f81e9fd1 (plain)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
name: "bitcoin"
suites:
- "lucid"
architectures:
- "i386"
- "amd64"
packages: 
- "libdb4.8++-dev"
- "qt4-qmake"
- "libqt4-dev"
- "libboost-system-dev"
- "libboost-filesystem-dev"
- "libboost-program-options-dev"
- "libboost-thread-dev"
- "libboost-test-dev"
- "libssl-dev"
- "git-core"
- "unzip"
- "pkg-config"
- "libpng12-dev"
- "autoconf2.13"
- "libtool"
- "automake"
- "faketime"
reference_datetime: "2013-06-01 00:00:00"
remotes:
- "url": "https://github.com/bitcoin/bitcoin.git"
  "dir": "bitcoin"
files:
- "miniupnpc-1.6.tar.gz"
- "qrencode-3.2.0.tar.bz2"
- "protobuf-2.5.0.tar.bz2"
script: |
  STAGING="$HOME/install"
  export LIBRARY_PATH="$STAGING/lib"
  #
  tar xzfm miniupnpc-1.6.tar.gz
  cd miniupnpc-1.6
  INSTALLPREFIX=$STAGING make $MAKEOPTS install
  cd ..
  #
  tar xjfm qrencode-3.2.0.tar.bz2
  cd qrencode-3.2.0
  sed -i 's/@LIBPTHREAD@//' libqrencode.pc.in
  ./configure --prefix=$STAGING --enable-static --disable-shared
  make $MAKEOPTS install
  cd ..
  #
  tar xjfm protobuf-2.5.0.tar.bz2
  cd protobuf-2.5.0
  mkdir -p $STAGING/host/bin
  ./configure --prefix=$STAGING --bindir=$STAGING/host/bin --enable-static --disable-shared
  make $MAKEOPTS install
  cd ..
  #
  cd bitcoin
  export TAR_OPTIONS=--mtime=`echo $REFERENCE_DATETIME | awk '{ print $1 }'`
  ./autogen.sh
  ./configure --disable-debug --prefix=$STAGING --bindir=$OUTDIR --with-protoc-bindir=$STAGING/host/bin --disable-maintainer-mode --disable-dependency-tracking PKG_CONFIG_PATH="$STAGING/lib/pkgconfig" CPPFLAGS="-I$STAGING/include" LDFLAGS="-L$STAGING/lib" CXXFLAGS="-frandom-seed=bitcoin"
  make dist
  mkdir -p distsrc
  cd distsrc
  tar --strip-components=1 -xf ../bitcoin-*.tar.*
  ./configure --disable-debug --prefix=$STAGING --bindir=$OUTDIR --with-protoc-bindir=$STAGING/host/bin --disable-maintainer-mode --disable-dependency-tracking PKG_CONFIG_PATH="$STAGING/lib/pkgconfig" CPPFLAGS="-I$STAGING/include" LDFLAGS="-L$STAGING/lib" CXXFLAGS="-frandom-seed=bitcoin"
  make $MAKEOPTS
  make $MAKEOPTS install-strip
  mkdir -p $OUTDIR/src
  cp ../bitcoin-*.tar.* $OUTDIR/src