void-packages/srcpkgs/MEGAsync/template
John Zimmermann 0f7ad1c702 MEGAsdk: update to 3.3.8. & MEGAcmd: update to 3.6.6.0 (#133)
* MEGAsdk: update to 3.3.8.

* MEGAsync: update to 3.6.6.0.

* MEGAcmd: rebuild against MEGAsdk-3.3.8_1
2018-06-19 21:00:15 +02:00

36 lines
941 B
Bash

# Template file for 'MEGAsync'
pkgname=MEGAsync
version=3.6.6.0
revision=1
wrksrc="${pkgname}-${version}_Linux"
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"
checksum=377a0b77b2506ebe0052d6366c3b5b74c3012cb4938e4df5e4b003677073f5fa
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
}