void-packages/srcpkgs/MEGAsync/template
2020-07-08 16:18:33 +02:00

37 lines
989 B
Bash

# Template file for 'MEGAsync'
pkgname=MEGAsync
version=4.2.4.0
revision=1
wrksrc="${pkgname}-${version}_Win"
build_wrksrc=src
build_style=qmake
configure_args='"CONFIG+=FULLREQUIREMENTS"'
hostmakedepends="libtool qt5-qmake qt5-host-tools"
makedepends="qt5-tools-devel qt5-devel qt5-svg-devel MEGAsdk-devel MEGAsdk-qt
libraw-devel libgomp-devel"
short_desc="Automated syncing with MEGA Cloud Drive"
maintainer="John <me@johnnynator.dev>"
license="custom: Proprietary"
homepage="https://mega.co.nz"
distfiles="https://github.com/meganz/MEGAsync/archive/v${version}_Win.tar.gz"
checksum=5fd90c93677085a2f73faa6a5a3548fcd29fc9f3203f6ddbcac7f170b580f239
restricted=yes
nocross=yes
case "$XBPS_TARGET_MACHINE" in
*-musl|ppc*) 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
}