void-packages/srcpkgs/libbitcoin-consensus/template

37 lines
1.0 KiB
Bash

# Template file for 'libbitcoin-consensus'
pkgname=libbitcoin-consensus
version=3.5.0
revision=1
build_style=gnu-configure
configure_args="ax_cv_boost_unit_test_framework=no
--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="boost-devel libbitcoin-secp256k1-devel"
short_desc="Bitcoin Consensus Library"
maintainer="Andy Weidenbaum <archbaum@gmail.com>"
license="AGPL-3.0-or-later"
homepage="https://github.com/libbitcoin/libbitcoin-consensus"
distfiles="https://github.com/libbitcoin/libbitcoin-consensus/archive/v${version}.tar.gz"
checksum=bb29761d4275a9c993151707557008b23572a3d9adecc0e36a3075cfb101dd1e
pre_configure() {
./autogen.sh
}
post_install() {
vlicense COPYING
vdoc README.md
}
libbitcoin-consensus-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
}
}