1 # Template file for 'monero'
5 conf_files="/etc/monerod.conf"
7 hostmakedepends="pkg-config qt5-host-tools"
8 configure_args="-DBUILD_GUI_DEPS=ON -DHAVE_LIBRESSL=1"
9 makedepends="libressl-devel boost-devel libldns-devel libunwind-devel
10 readline-devel unbound-devel miniupnpc-devel libldns-devel expat-devel
12 system_accounts="monero"
14 /var/lib/monero 0750 monero monero
15 /var/log/monero 0755 monero monero"
16 short_desc="Private, secure, untraceable, decentralised digital currency"
17 maintainer="Helmut Pozimski <helmut@pozimski.eu>"
18 license="BSD-3-Clause"
19 homepage="https://getmonero.org"
20 distfiles="https://github.com/monero-project/monero/archive/v${version}.tar.gz"
21 checksum=e5f32361ce39a9849a262afb1d5ce211f593c486dcca7bb0af60fcc26ee52b35
23 if [ "$CROSS_BUILD" ]; then
24 configure_args+=" -DTHREADS_PTHREAD_ARG=OFF"
27 case "$XBPS_TARGET_MACHINE" in
28 armv7*) configure_args+=" -DARCH=armv7"
30 armv6*) configure_args+=" -DARCH=armv6"
31 makedepends+=" libatomic-devel"
34 armv5*) configure_args+=" -DARCH=armv5"
35 makedepends+=" libatomic-devel"
38 aarch64*) configure_args+=" -DARCH=aarch64"
40 mips*) configure_args+=" -DARCH=mipsr32 -DNO_AES=ON"
41 makedepends+=" libatomic-devel"
44 *) configure_args+=" -DARCH=default"
49 case "$XBPS_TARGET_MACHINE" in
50 armv[56]*|mips*) sed -i CMakeLists.txt \
51 -e '/include(version.cmake)/i list(APPEND EXTRA_LIBRARIES libatomic.a)'
57 if [ -n "$CROSS_BUILD" ]; then
58 # The generate_translations_header binary is executed during the build
59 # but is not included in the binary package. It thus needs to be
61 CC=${CC_host} CFLAGS="${XBPS_CFLAGS}" LDFLAGS="${XBPS_LDFLAGS}" \
62 make -C build ${makejobs} generate_translations_header
68 vbin build/bin/monero-blockchain-import
69 vbin build/bin/monero-blockchain-export
70 vinstall utils/conf/monerod.conf 644 etc
74 monero-devel_package() {
75 short_desc+=" - development files"