# Maintainer: Alfonso Saavedra "Son Link" # Maintainer: Hexchain Tong pkgname=megasync pkgver=2.9.5.0 _pkgver=${pkgver//./_} pkgrel=1 pkgdesc="Sync your files to your Mega account. Official app" arch=('i686' 'x86_64') url="https://github.com/meganz/megasync" license=('custom:MEGA LIMITED CODE REVIEW LICENCE') conflicts=('megatools') depends=('curl' 'c-ares' 'crypto++' 'qt4' 'libuv') makedepends=('git') optdepends=('sni-qt: fix systray issue on KDE and LXQt') source=("git+https://github.com/meganz/MEGAsync.git#tag=v${_pkgver}_Linux" "megasync.install") md5sums=('SKIP' 'cf6fbb67643cc68baa8ea89bbd989fa0') install="${pkgname}.install" prepare(){ cd MEGAsync git submodule update --init --recursive } build(){ cd MEGAsync/src/MEGASync/mega ./autogen.sh ./configure \ --disable-silent-rules \ --disable-megaapi \ --with-cryptopp \ --without-sodium \ --with-zlib \ --with-sqlite \ --with-cares \ --with-curl \ --without-freeimage \ --without-readline \ --without-termcap \ --disable-examples \ --prefix=/usr cd ../.. qmake-qt4 CONFIG+="release" MEGA.pro lrelease-qt4 MEGASync/MEGASync.pro make } package (){ cd MEGAsync install -Dm 644 LICENCE.md $pkgdir/usr/share/licenses/megasync/LICENCE.md install -Dm 644 installer/terms.txt $pkgdir/usr/share/licenses/megasync/terms.txt cd src/MEGASync install -Dm 755 megasync $pkgdir/usr/bin/megasync cd platform/linux/data install -Dm 644 megasync.desktop $pkgdir/usr/share/applications/megasync.desktop cd icons/hicolor for size in 16x16 32x32 48x48 128x128 256x256 do install -Dm 644 $size/apps/mega.png $pkgdir/usr/share/icons/hicolor/$size/apps/mega.png done }