void-packages/srcpkgs/monero-core/template

45 lines
1.5 KiB
Bash
Raw Normal View History

2017-09-28 09:49:13 +00:00
# Template file for 'monero-core'
pkgname=monero-core
2017-10-26 07:07:58 +00:00
version=0.11.1.0
2017-09-28 09:49:13 +00:00
revision=1
wrksrc="monero-gui-${version}"
2017-09-28 09:49:13 +00:00
build_style=qmake
hostmakedepends="pkg-config qt5-tools qt5-qmake qt5-quickcontrols qt5-declarative-devel"
makedepends="libatomic-devel monero-devel boost-devel libunwind-devel miniupnpc-devel
2017-09-28 09:49:13 +00:00
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-gui/archive/v${version}.tar.gz"
checksum=39870b40b81cfe986c4ccd379fdde2cf34dabe8e427f7a9723e73ec9ee4ceae0
2017-09-28 09:49:13 +00:00
pre_configure() {
echo "var GUI_VERSION = \"${version}\"" > version.js
echo "var GUI_MONERO_VERSION = \"${version}\"" >> version.js
2018-01-08 21:31:15 +00:00
case "$XBPS_TARGET_MACHINE" in
armv[56]*) # armv[56]* need to link libatomic.a for __atomic_fetch_sub_8
sed -i *.pro -e "s;-lreadline ;-lreadline -latomic ;"
;;
esac
2017-09-28 09:49:13 +00:00
}
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
2018-01-08 21:31:15 +00:00
CXX=${CXX_host} CXXFLAGS="${XBPS_CXXFLAGS}" LDFLAGS="${XBPS_LDFLAGS}" \
make ${makejobs} -C src/zxcvbn-c dictgen
2017-09-28 09:49:13 +00:00
fi
2018-01-08 21:31:15 +00:00
make ${makejobs} -C src/zxcvbn-c
2017-09-28 09:49:13 +00:00
}
do_install() {
vbin release/bin/monero-wallet-gui
vlicense LICENSE
}