aboutsummaryrefslogtreecommitdiffstats
path: root/testing/bitcoin
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-05-08 12:11:16 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-05-08 12:11:16 +0000
commit147d8134ef3b18a894374fefb6a6f39a9918588a (patch)
treec3deafe2734c2e6f18eba200ea0812e5803d7992 /testing/bitcoin
parent776c7a910ed979e3e6abcecd2ac7ed249a62152c (diff)
downloadaports-147d8134ef3b18a894374fefb6a6f39a9918588a.tar.bz2
aports-147d8134ef3b18a894374fefb6a6f39a9918588a.tar.xz
testing/bitcoin: upgrade to 0.9.1
Diffstat (limited to 'testing/bitcoin')
-rw-r--r--testing/bitcoin/APKBUILD39
-rw-r--r--testing/bitcoin/boost-thread.patch11
-rw-r--r--testing/bitcoin/make.patch13
3 files changed, 20 insertions, 43 deletions
diff --git a/testing/bitcoin/APKBUILD b/testing/bitcoin/APKBUILD
index cd9573782e..5884c04f3a 100644
--- a/testing/bitcoin/APKBUILD
+++ b/testing/bitcoin/APKBUILD
@@ -1,22 +1,21 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=bitcoin
-pkgver=0.8.6
-pkgrel=1
+pkgver=0.9.1
+pkgrel=0
pkgdesc="decentralized P2P electronic cash system"
url="http://www.bitcoin.org/"
-arch=""
+arch="all"
license="MIT"
depends=""
depends_dev=""
-makedepends="$depends_dev boost-dev openssl-dev db-dev miniupnpc-dev"
+makedepends="$depends_dev boost-dev openssl-dev db-dev miniupnpc-dev
+ autoconf automake libtool"
install=""
subpackages=""
-source="http://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-0.8.6/bitcoin-$pkgver-linux.tar.gz
- make.patch
- boost-thread.patch
+source="$pkgname-$pkgver.tar.gz::https://github.com/bitcoin/bitcoin/archive/v$pkgver.tar.gz
ssize_t.patch"
-_builddir="$srcdir"/bitcoin-$pkgver-linux/src
+_builddir="$srcdir"/bitcoin-$pkgver
prepare() {
local i
cd "$_builddir"
@@ -25,12 +24,20 @@ prepare() {
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
+ ./autogen.sh
}
build() {
cd "$_builddir"
- cd src
- make -f makefile.unix
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --with-incompatible-bdb \
+ --disable-ccache \
+ || return 1
+ make || return 1
}
package() {
@@ -38,15 +45,9 @@ package() {
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
+md5sums="7a9c14c09b04e3e37d703fbfe5c3b1e2 bitcoin-0.9.1.tar.gz
716a88e668729e89d3eb929da86f7f04 ssize_t.patch"
-sha256sums="73495de53d1a30676884961e39ff46c3851ff770eeaa767331d065ff0ce8dd0c bitcoin-0.8.6-linux.tar.gz
-a37ea4e7eed4678397e66164d0a053049d7ae6baf69b46cc127eabbac81efe95 make.patch
-99c2ab6fb597d2b80b98c7f016de5523f9716c5e11c2455e20326538e3c101ab boost-thread.patch
+sha256sums="bf5021a426b5e38a741a5294a0ceb22daa74cda11c6dc0478c4aa48c55fdccb3 bitcoin-0.9.1.tar.gz
f0a094c7b374338ad153ee06b7dd2369dad6b97b1f1bb0252da12c9aaace5321 ssize_t.patch"
-sha512sums="efdf4509eb668504fe60d019c5787a511eedda4b6d57ced824b02a1a3b7ce943eb86137c5ffd15015f5e457c6253da970fcd53fae47ae2d4156f812e42985bf4 bitcoin-0.8.6-linux.tar.gz
-1c0275e7439e7d26d0f2ae91d04af7ea5b9e3740555a8ddba414f767d18101268eb80a41d0b85f21a2968b92fdc37d395c3bd7dd68d0856d228963c06e17b42f make.patch
-3ad8e5e8ded91b49fff707f779d5987a8ab33ad6eb9a3233f1f35e146c665aa71c0dc1983e58d9fb7f662e8d238f59dc1b8606a665644a5bcc48681f6ee8ca9d boost-thread.patch
+sha512sums="75be422fc263f209783fc66d9fd99027d67c7460c599a23badafcf5546ce7cb21206fce04c516a1c101aeff13542b332249b3b70a70c483aa82a5048dbdc9d92 bitcoin-0.9.1.tar.gz
98aa5ad81bdb4ae961b791bc978c39117cdf2d83c2181f92bebbb0db107d9b6e86eda265fb3f93ff8a5ca8a7754d7148818b98095d57201dff9363d60b97e7dd ssize_t.patch"
diff --git a/testing/bitcoin/boost-thread.patch b/testing/bitcoin/boost-thread.patch
deleted file mode 100644
index e71a980877..0000000000
--- a/testing/bitcoin/boost-thread.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- ./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
deleted file mode 100644
index d27fbd6274..0000000000
--- a/testing/bitcoin/make.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-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