void-packages/srcpkgs/litecoin/template
2020-01-25 21:03:24 +01:00

34 lines
1.2 KiB
Bash

# Template file for 'litecoin'
pkgname=litecoin
version=0.17.1
revision=2
build_style=gnu-configure
configure_args="--with-incompatible-bdb --with-gui=qt5 --disable-static
--disable-tests --with-libressl"
hostmakedepends="automake libtool pkg-config yasm protobuf which"
makedepends="libatomic-devel zlib-devel db-devel libressl-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=6e05514a480990f1ff1e7c81b5443d741f4016c03ab5c1ef44bf4b169af88bee
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}
}