blob: 79a203201cd5f00d3aa4b7462c4139fb4acfc0dd (
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
|
# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
# Contributor: Dave Reisner <d@falconindy.com>
# Contributor: William Giokas (KaiSforza) <1007380@gmail.com>
pkgname=libbitcoin-network-git
pkgver=20170307
pkgrel=3
pkgdesc="Bitcoin P2P Network Library"
arch=('i686' 'x86_64')
depends=('boost'
'boost-libs'
'icu'
'libbitcoin-system'
'libsecp256k1')
makedepends=('autoconf'
'automake'
'gcc'
'git'
'libtool'
'm4'
'make'
'pkg-config')
groups=('libbitcoin')
url="https://github.com/libbitcoin/libbitcoin-network"
license=('AGPL3')
source=(git+https://github.com/libbitcoin/libbitcoin-network)
sha256sums=('SKIP')
provides=('libbitcoin-network')
conflicts=('libbitcoin-network')
# half of available processing units or one if only one is available
_nproc=$(($(nproc)/2))
[[ ${_nproc} < 1 ]] && _nproc=1
pkgver() {
cd ${pkgname%-git}
git log -1 --format="%cd" --date=short --no-show-signature | sed "s|-||g"
}
build() {
cd ${pkgname%-git}
msg2 'Building...'
./autogen.sh
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--libexecdir=/usr/lib/libbitcoin-network \
--sysconfdir=/etc \
--sharedstatedir=/usr/share/libbitcoin-network \
--localstatedir=/var/lib/libbitcoin-network \
--with-gnu-ld
make -j$_nproc
}
check() {
cd ${pkgname%-git}
msg2 'Testing...'
make -j$_nproc check
}
package() {
cd ${pkgname%-git}
msg2 'Installing license...'
install -Dm 644 COPYING -t "$pkgdir/usr/share/licenses/libbitcoin-network"
msg2 'Installing documentation...'
install -Dm 644 README.md -t "$pkgdir/usr/share/doc/libbitcoin-network"
msg2 'Installing...'
make DESTDIR="$pkgdir" install
}
|