49 lines
1.6 KiB
Bash
49 lines
1.6 KiB
Bash
# Template file for 'monero-gui'
|
|
pkgname=monero-gui
|
|
version=0.14.0.0
|
|
revision=1
|
|
build_style=qmake
|
|
hostmakedepends="pkg-config qt5-tools qt5-qmake qt5-quickcontrols qt5-declarative-devel"
|
|
makedepends="boost-devel libatomic-devel libunwind-devel miniupnpc-devel monero-devel
|
|
qt5-declarative-devel readline-devel unbound-devel libsodium-devel hidapi-devel"
|
|
depends="qt5-graphicaleffects qt5-quickcontrols qt5-quickcontrols2"
|
|
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"
|
|
checksum=6dab90fbb908dc8fc9889d110ea87d5d1b0f1e802b57f316e0dd59ff0dfcd8b1
|
|
|
|
pre_configure() {
|
|
echo "var GUI_VERSION = \"${version}\"" > version.js
|
|
echo "var GUI_MONERO_VERSION = \"${version}\"" >> version.js
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
armv[56]*) # armv[56]* need to link libatomic.a for __atomic_fetch_sub_8
|
|
sed -i *.pro -e "s;-leasylogging;-leasylogging -latomic;"
|
|
;;
|
|
esac
|
|
}
|
|
|
|
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)"
|
|
}
|