diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 68 |
1 files changed, 59 insertions, 9 deletions
@@ -1,20 +1,70 @@ # Maintainer: Alfonso Saavedra "Son Link" <sonlink.dourden@gmail.com> pkgname=megasync pkgver=2.7.1 -pkgrel=3.1 +pkgrel=4 pkgdesc="Sync your files to your Mega account. Official app" arch=('i686' 'x86_64') url="https://mega.nz/#sync" -license=('custom:The Clarified Artistic License') +license=('custom:MEGA LIMITED CODE REVIEW LICENCE') conflicts=('megatools') -depends=('openssl' 'c-ares' 'libgcrypt' 'crypto++-562' 'qt4' 'libpng' 'qtchooser' 'sqlite') +depends=('openssl' 'c-ares' 'libgcrypt' 'crypto++' 'qt4' 'libpng' 'qtchooser' 'sqlite') +makedepends=('git' 'qtcreator-qt4') optdepends=('sni-qt: fix systray issue on KDE and LXQt') -source_i686=("https://mega.nz/linux/MEGAsync/openSUSE_Tumbleweed/i586/${pkgname}-${pkgver}-${pkgrel}.i586.rpm") -source_x86_64=("https://mega.nz/linux/MEGAsync/openSUSE_Tumbleweed/x86_64/${pkgname}-${pkgver}-${pkgrel}.x86_64.rpm") -md5sums_i686=('256feb740117ae064f893c966c7efe00') -md5sums_x86_64=('ed190d8b7cb99ba47fd5b48354c03af0') +source=("git+https://github.com/meganz/MEGAsync.git#commit=fd9cafb46ca9287ae2871aca24ea336a99fc9363" + "git+https://github.com/meganz/sdk.git#commit=ad50d1188a8ea0d87c4d2425e446c0600638bb3c" + "megasync.install") +md5sums=('SKIP' + 'SKIP' + 'cf6fbb67643cc68baa8ea89bbd989fa0') install="${pkgname}.install" + +prepare(){ + cd MEGAsync + git submodule init + git config submodule.src/MEGASync/mega.url "$srcdir/sdk" + git submodule update +} + +build(){ + cd MEGAsync/src/MEGASync/mega + ./autogen.sh + ./configure \ + --disable-silent-rules \ + --disable-curl-checks \ + --disable-megaapi \ + --with-cryptopp \ + --without-sodium \ + --with-zlib \ + --with-sqlite \ + --with-cares \ + --with-curl \ + --without-freeimage \ + --without-readline \ + --without-termcap \ + --disable-posix-threads \ + --disable-examples \ + --prefix=/usr + + cd ../.. + qmake-qt4 CONFIG+="release with_ext" MEGA.pro + lrelease-qt4 MEGASync/MEGASync.pro + make +} + package (){ - cd "${srcdir}" - cp -r usr ${pkgdir} + 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 } |