blob: 1c9d0873ed0a538d0d3374fedf9fe65d8ddbf6a8 (
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
|
# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
pkgname=libbitcoin-blockchain
pkgver=3.5.0
pkgrel=2
pkgdesc="Bitcoin Blockchain Library"
arch=('aarch64' 'x86_64')
depends=('boost'
'boost-libs'
'icu'
'libbitcoin-consensus'
'libbitcoin-database'
'libbitcoin-system'
'libsecp256k1')
makedepends=('autoconf'
'automake'
'gcc'
'libtool'
'm4'
'make'
'pkg-config')
groups=('libbitcoin')
url="https://github.com/libbitcoin/libbitcoin-blockchain"
license=('AGPL3')
source=($pkgname-$pkgver.tar.gz::https://codeload.github.com/libbitcoin/$pkgname/tar.gz/v$pkgver)
sha256sums=('03b8362c9172edbeb1e5970c996405cd2738e8274ba459e9b85359d6b838de20')
# half of available processing units or one if only one is available
_nproc=$(($(nproc)/2))
[[ ${_nproc} < 1 ]] && _nproc=1
build() {
cd "$srcdir/$pkgname-$pkgver"
msg2 'Building...'
./autogen.sh
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--libexecdir=/usr/lib/libbitcoin-blockchain \
--sysconfdir=/etc \
--sharedstatedir=/usr/share/libbitcoin-blockchain \
--localstatedir=/var/lib/libbitcoin-blockchain \
--with-gnu-ld
make -j$_nproc
}
check() {
cd "$srcdir/$pkgname-$pkgver"
msg2 'Testing...'
make -j$_nproc check
}
package() {
cd "$srcdir/$pkgname-$pkgver"
msg2 'Installing license...'
install -Dm 644 COPYING -t "$pkgdir/usr/share/licenses/libbitcoin-blockchain"
msg2 'Installing...'
make DESTDIR="$pkgdir" install
}
|