34 lines
949 B
Bash
34 lines
949 B
Bash
# Template file for 'namecoin'
|
|
pkgname=namecoin
|
|
version=0.16.2
|
|
revision=1
|
|
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 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}"
|
|
distfiles="https://github.com/namecoin/namecoin-core/archive/nc${version}.tar.gz"
|
|
checksum=2dec11332ce3284dfe3d9a6291eb770e1c27fcdb707f13b542494db527aa8d99
|
|
|
|
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
|
|
}
|