diff options
Diffstat (limited to 'testing/bitcoin')
-rw-r--r-- | testing/bitcoin/APKBUILD | 52 | ||||
-rw-r--r-- | testing/bitcoin/boost-thread.patch | 11 | ||||
-rw-r--r-- | testing/bitcoin/make.patch | 13 | ||||
-rw-r--r-- | testing/bitcoin/ssize_t.patch | 12 |
4 files changed, 88 insertions, 0 deletions
diff --git a/testing/bitcoin/APKBUILD b/testing/bitcoin/APKBUILD new file mode 100644 index 0000000000..ba6ee0e890 --- /dev/null +++ b/testing/bitcoin/APKBUILD @@ -0,0 +1,52 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=bitcoin +pkgver=0.8.6 +pkgrel=0 +pkgdesc="decentralized P2P electronic cash system" +url="http://www.bitcoin.org/" +arch="all" +license="MIT" +depends="" +depends_dev="" +makedepends="$depends_dev boost-dev openssl-dev db-dev miniupnpc-dev" +install="" +subpackages="" +source="http://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-0.8.6/bitcoin-$pkgver-linux.tar.gz + make.patch + boost-thread.patch + ssize_t.patch" + +_builddir="$srcdir"/bitcoin-$pkgver-linux/src +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + cd src + make -f makefile.unix +} + +package() { + cd "$_builddir" + install -Dm755 src/bitcoind "$pkgdir"/usr/bin/bitcoind || return 1 +} + +md5sums="4c24497a3c88adf1ef9855efaf31cf87 bitcoin-0.8.6-linux.tar.gz +baffb25d5cb9f2e859c462c8b5e2fbef make.patch +c1233bd720e62f1b90608232f269b4f9 boost-thread.patch +716a88e668729e89d3eb929da86f7f04 ssize_t.patch" +sha256sums="73495de53d1a30676884961e39ff46c3851ff770eeaa767331d065ff0ce8dd0c bitcoin-0.8.6-linux.tar.gz +a37ea4e7eed4678397e66164d0a053049d7ae6baf69b46cc127eabbac81efe95 make.patch +99c2ab6fb597d2b80b98c7f016de5523f9716c5e11c2455e20326538e3c101ab boost-thread.patch +f0a094c7b374338ad153ee06b7dd2369dad6b97b1f1bb0252da12c9aaace5321 ssize_t.patch" +sha512sums="efdf4509eb668504fe60d019c5787a511eedda4b6d57ced824b02a1a3b7ce943eb86137c5ffd15015f5e457c6253da970fcd53fae47ae2d4156f812e42985bf4 bitcoin-0.8.6-linux.tar.gz +1c0275e7439e7d26d0f2ae91d04af7ea5b9e3740555a8ddba414f767d18101268eb80a41d0b85f21a2968b92fdc37d395c3bd7dd68d0856d228963c06e17b42f make.patch +3ad8e5e8ded91b49fff707f779d5987a8ab33ad6eb9a3233f1f35e146c665aa71c0dc1983e58d9fb7f662e8d238f59dc1b8606a665644a5bcc48681f6ee8ca9d boost-thread.patch +98aa5ad81bdb4ae961b791bc978c39117cdf2d83c2181f92bebbb0db107d9b6e86eda265fb3f93ff8a5ca8a7754d7148818b98095d57201dff9363d60b97e7dd ssize_t.patch" diff --git a/testing/bitcoin/boost-thread.patch b/testing/bitcoin/boost-thread.patch new file mode 100644 index 0000000000..e71a980877 --- /dev/null +++ b/testing/bitcoin/boost-thread.patch @@ -0,0 +1,11 @@ +--- ./src/makefile.unix.old 2013-12-14 13:14:50.445065372 +0000 ++++ ./src/makefile.unix 2013-12-14 13:13:35.834253950 +0000 +@@ -37,7 +37,7 @@ + -l boost_system$(BOOST_LIB_SUFFIX) \ + -l boost_filesystem$(BOOST_LIB_SUFFIX) \ + -l boost_program_options$(BOOST_LIB_SUFFIX) \ +- -l boost_thread$(BOOST_LIB_SUFFIX) \ ++ -l boost_thread-mt$(BOOST_LIB_SUFFIX) \ + -l db_cxx$(BDB_LIB_SUFFIX) \ + -l ssl \ + -l crypto diff --git a/testing/bitcoin/make.patch b/testing/bitcoin/make.patch new file mode 100644 index 0000000000..d27fbd6274 --- /dev/null +++ b/testing/bitcoin/make.patch @@ -0,0 +1,13 @@ +diff --git a/src/makefile.unix b/src/makefile.unix +index 8110235..91ae3a9 100644 +--- a/src/makefile.unix ++++ b/src/makefile.unix +@@ -157,7 +157,7 @@ LIBS += $(CURDIR)/leveldb/libleveldb.a $(CURDIR)/leveldb/libmemenv.a + DEFS += $(addprefix -I,$(CURDIR)/leveldb/include) + DEFS += $(addprefix -I,$(CURDIR)/leveldb/helpers) + leveldb/libleveldb.a: +- @echo "Building LevelDB ..." && cd leveldb && $(MAKE) CC=$(CC) CXX=$(CXX) OPT="$(xCXXFLAGS)" libleveldb.a libmemenv.a && cd .. ++ @echo "Building LevelDB ..." && cd leveldb && $(MAKE) CC="$(CC)" CXX="$(CXX)" OPT="$(xCXXFLAGS)" libleveldb.a libmemenv.a && cd .. + + # auto-generated dependencies: + -include obj/*.P diff --git a/testing/bitcoin/ssize_t.patch b/testing/bitcoin/ssize_t.patch new file mode 100644 index 0000000000..2c21854ea3 --- /dev/null +++ b/testing/bitcoin/ssize_t.patch @@ -0,0 +1,12 @@ +diff --git a/src/leveldb/db/db_iter.cc b/src/leveldb/db/db_iter.cc +index 071a54e..68a18f2 100644 +--- a/src/leveldb/db/db_iter.cc ++++ b/src/leveldb/db/db_iter.cc +@@ -2,6 +2,7 @@ + // Use of this source code is governed by a BSD-style license that can be + // found in the LICENSE file. See the AUTHORS file for names of contributors. + ++#include <sys/types.h> + #include "db/db_iter.h" + + #include "db/filename.h" |