aboutsummaryrefslogtreecommitdiffstats
path: root/testing/bitcoin/APKBUILD
blob: cd9573782e0e80ccc6c26ba6f8c786e040c10e80 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=bitcoin
pkgver=0.8.6
pkgrel=1
pkgdesc="decentralized P2P electronic cash system"
url="http://www.bitcoin.org/"
arch=""
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"