57 lines
2.0 KiB
Bash
57 lines
2.0 KiB
Bash
# Template file for 'monero-gui'
|
|
pkgname=monero-gui
|
|
version=0.16.0.2
|
|
_monero_version=0.16.0.1
|
|
revision=2
|
|
build_style=qmake
|
|
hostmakedepends="pkg-config qt5-tools qt5-qmake qt5-quickcontrols qt5-declarative-devel
|
|
qt5-svg-devel"
|
|
makedepends="boost-devel libatomic-devel libunwind-devel miniupnpc-devel monero-devel
|
|
qt5-declarative-devel readline-devel unbound-devel libsodium-devel hidapi-devel
|
|
qt5-svg-devel RandomX libgcrypt-devel"
|
|
depends="qt5-graphicaleffects qt5-quickcontrols qt5-quickcontrols2 qt5-xmlpatterns"
|
|
short_desc="GUI for the core Monero implementation"
|
|
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://getmonero.org"
|
|
distfiles="https://github.com/monero-project/monero-gui/archive/v${version}.tar.gz
|
|
https://github.com/monero-project/monero/archive/v${_monero_version}.tar.gz>monero-${_monero_version}.tar.gz"
|
|
checksum="7a22262db4b779386d6d9a565eb66ff900f5bf4448378b527c1a1df3b25581ae
|
|
0fde78e23313a693207bffccd8a6481d14043e48588dc52fc10094a56a80fa39"
|
|
skip_extraction="monero-${version}.tar.gz"
|
|
|
|
post_extract() {
|
|
bsdtar xzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/monero-${_monero_version}.tar.gz --strip-components 1 -C monero
|
|
}
|
|
|
|
pre_configure() {
|
|
echo "var GUI_VERSION = \"${version}\"" > version.js
|
|
echo "var GUI_MONERO_VERSION = \"${version}\"" >> version.js
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
sed -i *.pro -e "s;-leasylogging;-leasylogging -latomic;"
|
|
fi
|
|
}
|
|
|
|
pre_build() {
|
|
if [ "$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 ${makejobs} -C src/zxcvbn-c dictgen
|
|
|
|
fi
|
|
make ${makejobs} -C src/zxcvbn-c
|
|
}
|
|
|
|
do_install() {
|
|
vbin release/bin/monero-wallet-gui
|
|
vlicense LICENSE
|
|
}
|
|
|
|
monero-core_package() {
|
|
build_style=meta
|
|
depends="monero-gui>=${version}_${revision}"
|
|
short_desc+=" (transitional dummy package)"
|
|
}
|