diff options
author | Hexchain Tong | 2016-07-31 11:13:40 +0800 |
---|---|---|
committer | Hexchain Tong | 2016-07-31 11:13:40 +0800 |
commit | 9d1e045b8cf49eb709a3b8a6b83b45d02d4cef65 (patch) | |
tree | 2998ee0f65bdc9d1e905163533adeee43baba1ea | |
parent | 157e97c2765a613f5f517e25adbea6fba9bceee6 (diff) | |
download | aur-9d1e045b8cf49eb709a3b8a6b83b45d02d4cef65.tar.gz |
upgpkg
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 86 | ||||
-rw-r--r-- | megasync.install | 12 |
3 files changed, 48 insertions, 63 deletions
@@ -1,11 +1,10 @@ # Generated by mksrcinfo v8 -# Wed Jul 27 15:49:57 UTC 2016 +# Sun Jul 31 03:13:23 UTC 2016 pkgbase = megasync pkgdesc = Sync your files to your Mega account. Official app - pkgver = 2.9.5.0 + pkgver = 2.9.8.0 pkgrel = 1 url = https://github.com/meganz/megasync - install = megasync.install arch = i686 arch = x86_64 license = custom:MEGA LIMITED CODE REVIEW LICENCE @@ -13,14 +12,14 @@ pkgbase = megasync depends = curl depends = c-ares depends = crypto++ - depends = qt4 + depends = libsodium + depends = hicolor-icon-theme + depends = qt5-base depends = libuv optdepends = sni-qt: fix systray issue on KDE and LXQt conflicts = megatools - source = git+https://github.com/meganz/MEGAsync.git#tag=v2_9_5_0_Linux - source = megasync.install + source = git+https://github.com/meganz/MEGAsync.git#commit=aee1443420234446534ddbd3513ee1d480f5533c md5sums = SKIP - md5sums = cf6fbb67643cc68baa8ea89bbd989fa0 pkgname = megasync @@ -1,7 +1,7 @@ # Maintainer: Alfonso Saavedra "Son Link" <sonlink.dourden@gmail.com> # Maintainer: Hexchain Tong <i at hexchain dot org> pkgname=megasync -pkgver=2.9.5.0 +pkgver=2.9.8.0 _pkgver=${pkgver//./_} pkgrel=1 pkgdesc="Sync your files to your Mega account. Official app" @@ -9,58 +9,56 @@ 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') +depends=('curl' 'c-ares' 'crypto++' 'libsodium' 'hicolor-icon-theme' 'qt5-base' '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" +source=("git+https://github.com/meganz/MEGAsync.git#commit=aee1443420234446534ddbd3513ee1d480f5533c") +md5sums=('SKIP') prepare(){ - cd MEGAsync - git submodule update --init --recursive + cd "$srcdir/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 + cd "$srcdir/MEGAsync/src/MEGASync/mega" + ./autogen.sh + ./configure \ + --enable-gcc-hardening \ + --disable-silent-rules \ + --disable-megaapi \ + --with-cryptopp \ + --with-sodium \ + --with-zlib \ + --with-sqlite \ + --with-cares \ + --with-curl \ + --without-freeimage \ + --without-readline \ + --without-termcap \ + --disable-examples \ + --prefix=/usr + + cd "$srcdir/MEGAsync/src" + qmake-qt5 CONFIG+="release" MEGA.pro + lrelease-qt5 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 "$srcdir/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 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 + 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 } diff --git a/megasync.install b/megasync.install deleted file mode 100644 index 16b1a3fdf912..000000000000 --- a/megasync.install +++ /dev/null @@ -1,12 +0,0 @@ -post_install() { - xdg-icon-resource forceupdate --theme hicolor &> /dev/null - update-desktop-database -q -} - -post_upgrade() { - post_install -} - -post_remove() { - post_install -}
\ No newline at end of file |