void-packages/srcpkgs/MEGAsync/template

37 lines
941 B
Bash
Raw Normal View History

2017-06-25 13:26:03 +02:00
# Template file for 'MEGAsync'
pkgname=MEGAsync
2018-02-26 23:56:36 +01:00
version=3.6.0.0
2017-06-25 13:26:03 +02:00
revision=1
wrksrc="${pkgname}-${version}_Linux"
2017-06-25 13:26:03 +02:00
build_wrksrc="src"
build_style=qmake
configure_args='"CONFIG-=with_tools"'
hostmakedepends="libtool qt5-qmake qt5-host-tools"
makedepends="qt5-tools-devel qt5-devel qt5-svg-devel MEGAsdk-devel MEGAsdk-qt"
short_desc="Automated syncing with MEGA Cloud Drive"
maintainer="John <johnz@posteo.net>"
license="custom"
homepage="https://mega.co.nz"
distfiles="https://github.com/meganz/MEGAsync/archive/v${version}_Linux.tar.gz"
2018-02-26 23:56:36 +01:00
checksum=4be2ff9e3c0beb7653e269e14802fc0cf82b58cd78b0dbbae469533635cd8ddc
2017-06-25 13:26:03 +02:00
restricted=yes
nocross=yes
case "$XBPS_TARGET_MACHINE" in
*-musl) broken="google breakpad";;
esac
post_extract() {
cp -r ${XBPS_CROSS_BASE}/usr/share/MEGAsdk/bindings \
${wrksrc}/src/MEGASync/mega
}
pre_build() {
lrelease-qt5 MEGASync/MEGASync.pro
}
post_install() {
vbin MEGASync/megasync
vlicense ${wrksrc}/LICENCE.md
}