void-packages/srcpkgs/litecoin/template
2019-11-06 07:43:09 +01:00

34 lines
1.2 KiB
Bash

# Template file for 'litecoin'
pkgname=litecoin
version=0.17.1
revision=1
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"
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}
}