33 lines
947 B
Bash
33 lines
947 B
Bash
# Template file for 'namecoin'
|
|
pkgname=namecoin
|
|
version=0.17.0
|
|
revision=2
|
|
wrksrc="${pkgname}-core-nc${version}"
|
|
build_style=gnu-configure
|
|
configure_args="--with-incompatible-bdb --disable-static
|
|
--enable-hardening --with-boost=${XBPS_CROSS_BASE}/usr"
|
|
hostmakedepends="pkg-config yasm automake libtool"
|
|
makedepends="libevent-devel db-devel protobuf-devel boost-devel
|
|
miniupnpc-devel qrencode-devel"
|
|
short_desc="Distributed key/value database"
|
|
maintainer="ananteris <ananteris@protonmail.ch>"
|
|
license="MIT"
|
|
homepage="https://namecoin.org"
|
|
distfiles="https://github.com/namecoin/namecoin-core/archive/nc${version}.tar.gz"
|
|
checksum=b9e56cebd6756ad8ff7c8f6c9e633cb56cb139c7c4437189945b3f25acbe0082
|
|
|
|
case "${XBPS_TARGET_MACHINE}" in
|
|
armv[56]*|ppc|ppc-musl)
|
|
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
|
|
}
|