void-packages/srcpkgs/monero-core/template
2017-10-28 16:20:07 +02:00

38 lines
1.3 KiB
Bash

# Template file for 'monero-core'
pkgname=monero-core
version=0.11.1.0
revision=1
build_style=qmake
hostmakedepends="pkg-config qt5-tools qt5-qmake qt5-quickcontrols qt5-declarative-devel"
makedepends="monero-devel boost-devel libunwind-devel miniupnpc-devel
libressl-devel readline-devel qt5-devel qt5-declarative-devel
unbound-devel"
depends="qt5-graphicaleffects qt5-quickcontrols"
short_desc="GUI for the core Monero implementation"
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
license="3-clause-BSD"
homepage="https://getmonero.org"
distfiles="https://github.com/monero-project/monero-core/archive/v${version}.tar.gz"
checksum=40a1f19974dbffb0f5342ca9fb3e08f010ca1841405bb600d3b679c226f1504e
pre_configure() {
echo "var GUI_VERSION = \"${version}\"" > version.js
echo "var GUI_MONERO_VERSION = \"${version}\"" >> version.js
}
pre_build() {
if [ -n "$CROSS_BUILD" ]; then
# The dictgen binary is executed during the build to generate code
# but is not included in the binary package. It thus needs to be
# built for the host
CXX=${CXX_host} CXXFLAGS=${XBPS_CXXFLAGS} LDFLAGS=${XBPS_LDFLAGS} make -j ${XBPS_MAKEJOBS} -C src/zxcvbn-c dictgen
fi
make -j ${XBPS_MAKEJOBS} -C src/zxcvbn-c
}
do_install() {
vbin release/bin/monero-wallet-gui
vlicense LICENSE
}