# Template file for 'namecoin'
pkgname=namecoin
version=0.13.99
revision=5
hostmakedepends="pkg-config yasm automake libtool"
build_style=gnu-configure
makedepends="libevent-devel db-devel protobuf-devel boost-devel miniupnpc-devel libevent-devel qrencode-devel"
short_desc="Distributed key/value database"
maintainer="ananteris <ananteris@protonmail.ch>"
license="MIT"
homepage="https://namecoin.org"
wrksrc="${pkgname}-core-nc${version}-name-tab-beta1"
distfiles="https://github.com/${pkgname}/${pkgname}-core/archive/nc${version}-name-tab-beta1.tar.gz"
checksum=0a973d0bed8142a0733ef11ca10e4a40dee5fd6c311e77160e4e8dc47a4d1967
configure_args="--with-incompatible-bdb --disable-static --enable-hardening --with-boost=${XBPS_CROSS_BASE}/usr"

case "${XBPS_TARGET_MACHINE}" in
	*-musl)
		broken="https://travis-ci.org/voidlinux/void-packages/builds/184320677" ;;
esac

pre_configure() {
	./autogen.sh
}

post_install() {
	vlicense COPYING
}
