blob: a230c6f40508607c5dd042ba0f0c3279e6acaecb (
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=bitcoin
pkgver=0.18.1
_ver=${pkgver/_/}
pkgrel=6
pkgdesc="Decentralized P2P electronic cash system"
url="https://www.bitcoin.org"
arch="all !armhf"
license="MIT"
makedepends="autoconf automake libtool boost-dev openssl-dev db-dev miniupnpc-dev
qt5-qtbase-dev qt5-qttools-dev protobuf-dev libqrencode-dev libevent-dev chrpath zeromq-dev"
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-install"
subpackages="$pkgname-dev $pkgname-qt $pkgname-cli $pkgname-tx $pkgname-tests $pkgname-bench
$pkgname-doc $pkgname-openrc"
source="$pkgname-$_ver.tar.gz::https://github.com/bitcoin/bitcoin/archive/v${_ver}.tar.gz
ssize_t.patch
skip-fs-test-utf8.patch
$pkgname.initd
$pkgname.conf
"
builddir="$srcdir/bitcoin-$_ver"
build() {
cd "$builddir"
./autogen.sh
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--mandir=/usr/share/man \
--with-incompatible-bdb \
--with-gui=qt5 \
--with-utils \
--disable-ccache \
--disable-static \
--enable-hardening
make
}
package() {
cd "$builddir"
make install DESTDIR="$pkgdir"
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -m600 -D "$srcdir"/$pkgname.conf "$pkgdir"/etc/$pkgname.conf
rm -f "$pkgdir"/usr/lib/*.la
}
qt() {
pkgdesc="Bitcoin with a Qt frontend & QR Code support"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/$pkgname-qt "$subpkgdir"/usr/bin/
}
cli() {
pkgdesc="Bitcoin CLI"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/$pkgname-cli "$subpkgdir"/usr/bin/
}
tx() {
pkgdesc="Bitcoin TX (Transaction Tool)"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/$pkgname-tx "$subpkgdir"/usr/bin/
}
tests() {
pkgdesc="Bitcoin & Bitcoin-QT Unit Tests)"
mkdir -p "$subpkgdir"/usr/bin
chrpath -d "$pkgdir"/usr/bin/test_$pkgname
mv "$pkgdir"/usr/bin/test_$pkgname-qt "$subpkgdir"/usr/bin/
mv "$pkgdir"/usr/bin/test_$pkgname "$subpkgdir"/usr/bin/
}
bench() {
pkgdesc="Bitcoin Benchmarking Tools)"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/bench_$pkgname "$subpkgdir"/usr/bin/
}
dev() {
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/lib "$subpkgdir"/usr/
mv "$pkgdir"/usr/include "$subpkgdir"/usr/
}
check() {
cd "$builddir"
make check
}
sha512sums="5fe10f51d1e3119a6e4f522c945ca6d280298c326d4bf4ab996bf6db79ddd1e751fa91efc7c6517083a861b1639ff529effd7cd7d0401c85a3b93d46a6bb38ee bitcoin-0.18.1.tar.gz
98aa5ad81bdb4ae961b791bc978c39117cdf2d83c2181f92bebbb0db107d9b6e86eda265fb3f93ff8a5ca8a7754d7148818b98095d57201dff9363d60b97e7dd ssize_t.patch
6856e38efbe289e64329c80de9e8489ffbdd8c6eda0f3424fe3922fc765afd90b2915cd4f23abd5bdb72e1882871b1c2fde846ced06e60963dcbdc7aad2844c0 skip-fs-test-utf8.patch
71e5f3b5079a22b6ddecfad89363fc642d5ea7da18f1203057f626d214734467f4b933b839c269401be7af2c3dcc01afcb3b98198b7d580c56d8740b34451558 bitcoin.initd
a31210d8db76c5a9b614a6de756c1678c0344898565ac3e5d6a34ac1bed66aec4964f1dc874294bc978f53b0e961df921655f7309df19b66c90aa6bd40379a09 bitcoin.conf"
|