void-packages/srcpkgs/litecoin/template

35 lines
1.2 KiB
Bash

# Template file for 'litecoin'
pkgname=litecoin
version=0.18.1
revision=6
build_style=gnu-configure
configure_args="--with-incompatible-bdb --with-gui=qt5 --disable-static
--disable-tests --with-openssl"
hostmakedepends="automake libtool pkg-config yasm protobuf which"
makedepends="libatomic-devel zlib-devel db-devel openssl-devel boost-devel
qt5-tools-devel miniupnpc-devel protobuf-devel libevent-devel"
short_desc="Peer-to-peer Internet currency based on scrypt cryptography"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="http://www.litecoin.org/"
distfiles="https://github.com/litecoin-project/litecoin/archive/v${version}.tar.gz"
checksum=2d67cba11adc5890b9698ccddeb68dd3c2ff6af19bf3ed0f1c719348b914042f
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools protobuf"
configure_args+=" --with-boost=${XBPS_CROSS_BASE}"
fi
pre_configure() {
NOCONFIGURE=1 ./autogen.sh
}
post_install() {
rm -rf ${DESTDIR}/usr/include
vsconf share/examples/litecoin.conf
vman doc/man/litecoind.1 litecoind.1
vlicense COPYING
vmkdir usr/share/bash-completion/completions/${pkgname}
vcopy contrib/*.bash-completion usr/share/bash-completion/completions/${pkgname}
}