blob: d07431bf5d67bd376cd36337536f40144e8bd512 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Maintainer: kikadf <kikadf.01@gmail.com>
# Contributor: Daniel Henry <d at hackr dot pl>
# Contributor: Miguel Revilla <yo at miguelrevilla dot com>
# Contributor: Alfonso Saavedra "Son Link" <sonlink.dourden@gmail.com>
# Contributor: Hexchain Tong <i at hexchain dot org>
pkgname=megasync
pkgver=3.6.6.0
_sdkver=3.3.9
pkgrel=3
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')
depends=('c-ares' 'crypto++' 'libsodium' 'hicolor-icon-theme' 'libuv' 'qt5-svg' 'libmediainfo')
makedepends=('qt5-tools' 'swig' 'doxygen')
optdepends=('sni-qt: fix systray issue on KDE and LXQt')
source=("https://github.com/meganz/MEGAsync/archive/v${pkgver}_Linux.tar.gz"
"https://github.com/meganz/sdk/archive/v${_sdkver}.tar.gz")
sha256sums=('377a0b77b2506ebe0052d6366c3b5b74c3012cb4938e4df5e4b003677073f5fa'
'522b63bf2f2d1eeff0644ef106fff94fcd4f6a844e01539cc6cfb30d16463dba')
prepare(){
rm -rf MEGAsync-${pkgver}_Linux/src/MEGASync/mega
mv sdk-${_sdkver} MEGAsync-${pkgver}_Linux/src/MEGASync/mega
}
build(){
cd "MEGAsync-${pkgver}_Linux/src/MEGASync/mega"
./autogen.sh
./configure \
--prefix=/usr \
--disable-examples \
--disable-java \
--disable-php \
--disable-python \
--enable-chat \
--enable-gcc-hardening \
--with-cares \
--with-cryptopp \
--with-curl \
--with-sodium \
--with-sqlite \
--with-zlib \
--without-freeimage \
--without-termcap \
--without-ffmpeg
cd "${srcdir}/MEGAsync-${pkgver}_Linux/src"
qmake-qt5 CONFIG+="release" MEGA.pro
lrelease-qt5 MEGASync/MEGASync.pro
make
}
package (){
cd "MEGAsync-${pkgver}_Linux"
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
}
|