void-packages/srcpkgs/libbitcoin-explorer/template

45 lines
1.4 KiB
Bash

# Template file for 'libbitcoin-explorer'
pkgname=libbitcoin-explorer
version=3.6.0
revision=1
build_style=gnu-configure
configure_args="--with-bash-completiondir=/usr/share/bash-completion/completions
--with-boost-libdir=${XBPS_CROSS_BASE}/usr/lib
--with-boost=${XBPS_CROSS_BASE}/usr --with-gnu-ld"
hostmakedepends="autoconf automake libtool m4 pkg-config"
makedepends="bash-completion boost-devel icu-devel libbitcoin-client-devel
libbitcoin-network-devel libbitcoin-protocol-devel libbitcoin-secp256k1-devel
libbitcoin-system-devel libpng-devel libsodium-devel qrencode-devel
zeromq-devel"
short_desc="Bitcoin Command Line Tool"
maintainer="Andy Weidenbaum <archbaum@gmail.com>"
license="AGPL-3.0-or-later"
homepage="https://github.com/libbitcoin/libbitcoin-explorer"
distfiles="https://github.com/libbitcoin/libbitcoin-explorer/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=e1b3fa2723465f7366a6e8c55e14df53106e90b82cc977db638c78f9bc5c47db
conf_files="/etc/libbitcoin/bx.cfg"
case "$XBPS_TARGET_MACHINE" in
armv6*|ppc|ppc-musl) makedepends+=" libatomic-devel" LDFLAGS="-latomic" ;;
esac
pre_configure() {
./autogen.sh
}
post_install() {
vlicense COPYING
vdoc README.md
}
libbitcoin-explorer-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}