blob: 9b9d08bae0b677ecfa5d88e744efa53fd7ab9ae8 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=bitcoin
pkgver=0.9.1
pkgrel=1
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
qt5-qtbase-dev qt5-qttools-dev protobuf-dev libqrencode-dev
autoconf automake libtool"
install=""
subpackages="$pkgname-qt $pkgname-cli"
source="$pkgname-$pkgver.tar.gz::https://github.com/bitcoin/bitcoin/archive/v$pkgver.tar.gz
ssize_t.patch
20-set-default-env.patch
"
_builddir="$srcdir"/bitcoin-$pkgver
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
./autogen.sh
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--mandir=/usr/share/man \
--with-incompatible-bdb \
--disable-ccache \
--with-gui=qt5 \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make install DESTDIR="$pkgdir" || return 1
}
qt() {
pkgdesc="Bitcoin with a Qt frontend & QR Code support"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/bitcoin-qt "$subpkgdir"/usr/bin/ || return 1
}
cli() {
pkgdesc="Bitcoin CLI"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/bitcoin-cli "$subpkgdir"/usr/bin/ || return 1
}
md5sums="7a9c14c09b04e3e37d703fbfe5c3b1e2 bitcoin-0.9.1.tar.gz
716a88e668729e89d3eb929da86f7f04 ssize_t.patch
1803737cb8f5f95587323b0209bf9df4 20-set-default-env.patch"
sha256sums="bf5021a426b5e38a741a5294a0ceb22daa74cda11c6dc0478c4aa48c55fdccb3 bitcoin-0.9.1.tar.gz
f0a094c7b374338ad153ee06b7dd2369dad6b97b1f1bb0252da12c9aaace5321 ssize_t.patch
b9d482ad6fbdaf843ba7b8a20b4fad2624ddaa5e1d1cc3c906a3da37c6e9cdf6 20-set-default-env.patch"
sha512sums="75be422fc263f209783fc66d9fd99027d67c7460c599a23badafcf5546ce7cb21206fce04c516a1c101aeff13542b332249b3b70a70c483aa82a5048dbdc9d92 bitcoin-0.9.1.tar.gz
98aa5ad81bdb4ae961b791bc978c39117cdf2d83c2181f92bebbb0db107d9b6e86eda265fb3f93ff8a5ca8a7754d7148818b98095d57201dff9363d60b97e7dd ssize_t.patch
42f063926d0c527b74b643bc075af41a6530a295e470e95d6e5d0863a4d946a072b4e6925a96fc48591a038e03d77b30a88f0595da52b531aef3bfa72a2738be 20-set-default-env.patch"
|