void-packages/srcpkgs/namecoin/template
2018-09-06 08:04:41 +02:00

31 lines
982 B
Bash

# Template file for 'namecoin'
pkgname=namecoin
version=0.13.99
revision=9
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
armv[56]*)
makedepends+=" libatomic-devel"
LDFLAGS+=" -latomic"
;;
esac
pre_configure() {
./autogen.sh
sed -i src/compat.h -e "s;<sys/fcntl.h>;<fcntl.h>;"
}
post_install() {
vlicense COPYING
}