2017-09-22 20:20:36 +02:00
|
|
|
# Template file for 'monero'
|
|
|
|
pkgname=monero
|
2017-10-25 06:00:32 +02:00
|
|
|
version=0.11.1.0
|
|
|
|
revision=1
|
2017-09-22 20:20:36 +02:00
|
|
|
conf_files="/etc/monerod.conf"
|
|
|
|
build_style=cmake
|
|
|
|
hostmakedepends="pkg-config"
|
|
|
|
configure_args="-DBUILD_GUI_DEPS=ON -DHAVE_LIBRESSL=1"
|
|
|
|
makedepends="libressl-devel boost-devel libldns-devel libunwind-devel
|
|
|
|
readline-devel unbound-devel miniupnpc-devel libldns-devel expat-devel"
|
|
|
|
system_accounts="monero"
|
|
|
|
make_dirs="
|
|
|
|
/var/lib/monero 0750 monero monero
|
|
|
|
/var/log/monero 0755 monero monero"
|
|
|
|
short_desc="Private, secure, untraceable, decentralised digital currency"
|
|
|
|
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
|
|
|
|
license="3-clause-BSD"
|
|
|
|
homepage="https://getmonero.org"
|
|
|
|
distfiles="https://github.com/monero-project/monero/archive/v${version}.tar.gz"
|
2017-10-25 06:00:32 +02:00
|
|
|
checksum=b5b48d3e5317c599e1499278580e9a6ba3afc3536f4064fcf7b20840066a509b
|
2017-09-22 20:20:36 +02:00
|
|
|
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
configure_args+=" -DTHREADS_PTHREAD_ARG=OFF"
|
|
|
|
fi
|
|
|
|
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
armv7*) configure_args+=" -DARCH=armv7"
|
|
|
|
;;
|
|
|
|
armv6*) configure_args+=" -DARCH=armv6"
|
|
|
|
;;
|
|
|
|
aarch64*) configure_args+=" -DARCH=aarch64"
|
|
|
|
;;
|
|
|
|
*) configure_args+=" -DARCH=default"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2017-09-28 11:45:38 +02:00
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE
|
2017-09-22 20:20:36 +02:00
|
|
|
vbin build/bin/monero-blockchain-import
|
|
|
|
vbin build/bin/monero-blockchain-export
|
|
|
|
vinstall utils/conf/monerod.conf 644 etc
|
|
|
|
vsv monerod
|
|
|
|
}
|
|
|
|
|
2017-09-28 11:45:38 +02:00
|
|
|
monero-devel_package() {
|
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vlicense LICENSE
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
}
|
2017-09-22 20:20:36 +02:00
|
|
|
}
|
2017-09-28 11:45:38 +02:00
|
|
|
|