blob: a0f4202850d77a803d2d7113bd50ab7d0b780ab7 (
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
72
|
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
# Contributor: Archimede Pitagorico <archimede.pitagorico@mail.com>
# Contributor: Alfonso Saavedra "Son Link" <sonlink.dourden@gmail.com>
pkgname=megasync-git
pkgver=v4.0.2.0.1.g2dec1949
pkgrel=1
pkgdesc="MEGASync Desktop App. (GIT Version)"
arch=('x86_64')
url='https://mega.co.nz/#sync'
license=('custom:MEGA')
source=('git+https://github.com/meganz/MEGAsync.git'
'git+https://github.com/meganz/sdk.git'
'mega.svg'
)
conflicts=('megasync'
'megatools'
)
provides=('megasync')
depends=('qt5-svg'
'c-ares'
'libuv'
'crypto++'
'libsodium'
'ffmpeg'
'libmediainfo'
'libraw'
)
makedepends=('git'
'qt5-tools'
)
sha256sums=('SKIP'
'SKIP'
'c0abfeafb541509923c85d253f6f64dae8a49e9ae4b067f5c0c484ff1d924403'
)
pkgver() {
cd MEGAsync
echo "$(git describe --long --tags | tr - . | tr _ . | sed 's|OSX\.||' | sed 's|Win\.||' | sed 's|Linux\.||' | sed 's|\.Ubuntu\.18\.10build||g')"
}
prepare() {
cd MEGAsync
git config submodule.src/MEGASync/mega.url "${srcdir}/sdk"
git submodule update --init
cd src/MEGASync/mega
./autogen.sh
}
build() {
cd "${srcdir}/MEGAsync/src/MEGASync/mega"
./configure \
--prefix=/usr \
--without-freeimage \
--disable-examples
cd "${srcdir}/MEGAsync/src/MEGASync"
lrelease-qt5 MEGASync.pro
qmake-qt5 CONFIG+=debug MEGASync.pro
make
}
package() {
install -Dm755 MEGAsync/src/MEGASync/megasync "${pkgdir}/usr/bin/megasync"
install -Dm644 MEGAsync/src/MEGASync/platform/linux/data/megasync.desktop "${pkgdir}/usr/share/applications/megasync.desktop"
sed 's|System;||g' -i "${pkgdir}/usr/share/applications/megasync.desktop"
install -Dm644 "${srcdir}/mega.svg" "${pkgdir}/usr/share/pixmaps/mega.svg"
install -Dm644 MEGAsync/LICENCE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|