summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD12
-rw-r--r--megasyncd.service16
-rw-r--r--megasyncd@.service6
4 files changed, 13 insertions, 26 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4a7eb27ed2a..8d4c27aeb17 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,10 +1,11 @@
pkgbase = megasync-headless
pkgdesc = Sync with MEGA. Daemon, fuse and cli client. Original sdk (git).
- pkgver = v3.6.8.0.g93cc57d75
+ pkgver = v3.8.6.0.gd5608a7f9
pkgrel = 1
url = https://mega.co.nz/#sync
install = megasync-headless.install
arch = x86_64
+ arch = aarch64
license = custom:MEGA
makedepends = git
depends = c-ares
@@ -19,7 +20,7 @@ pkgbase = megasync-headless
options = !buildflags
backup = usr/lib/systemd/system/megasyncd@.service
backup = etc/conf.d/megasync.conf
- source = git+https://github.com/meganz/sdk.git#tag=v3.6.8
+ source = git+https://github.com/meganz/sdk.git#tag=v3.8.6
source = megasyncd@.service
source = megasync.conf
sha1sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index 22a5f792fb6..bdf08a31273 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,13 +1,13 @@
# Maintainer: Archimede Pitagorico <archimede.pitagorico@mail.com>
pkgname=megasync-headless
-pkgver=v3.6.8.0.g93cc57d75
+pkgver=v3.8.6.0.gd5608a7f9
pkgrel=1
pkgdesc="Sync with MEGA. Daemon, fuse and cli client. Original sdk (git)."
-arch=('x86_64')
+arch=('x86_64' 'aarch64')
url='https://mega.co.nz/#sync'
license=('custom:MEGA')
-source=('git+https://github.com/meganz/sdk.git#tag=v3.6.8'
+source=('git+https://github.com/meganz/sdk.git#tag=v3.8.6'
'megasyncd@.service'
'megasync.conf'
)
@@ -16,14 +16,14 @@ backup=('usr/lib/systemd/system/megasyncd@.service'
'etc/conf.d/megasync.conf'
)
conflicts=('megasync'
- 'megasync-git'
+ 'megasync-git'
'megatools'
)
depends=('c-ares'
'curl'
'crypto++'
- 'zlib'
- 'openssl'
+ 'zlib'
+ 'openssl'
'libsodium'
)
makedepends=('git'
diff --git a/megasyncd.service b/megasyncd.service
deleted file mode 100644
index 30776cc9faa..00000000000
--- a/megasyncd.service
+++ /dev/null
@@ -1,16 +0,0 @@
-[Unit]
-Description=Mega sync client
-After=local-fs.target network.target
-
-[Service]
-Type=simple
-EnvironmentFile=/etc/conf.d/megasync.conf
-ExecStart=/usr/bin/bash -c "cd $MEGA_WORK_DIR && /usr/local/bin/megasimplesync $MEGA_LOCAL_DIR $MEGA_REMOTE_DIR"
-ExecReload=/bin/kill -HUP $MAINPID
-KillMode=process
-Restart=on-failure
-RestartSec=30s
-
-[Install]
-WantedBy=multi-user.target
-
diff --git a/megasyncd@.service b/megasyncd@.service
index 8bbac701d3f..263a2faa0ef 100644
--- a/megasyncd@.service
+++ b/megasyncd@.service
@@ -6,7 +6,10 @@ After=local-fs.target network.target
Type=simple
User=%I
EnvironmentFile=/etc/conf.d/megasync.conf
-ExecStart=/usr/bin/bash -c "cd $MEGA_WORK_DIR && /usr/bin/megasimplesync $MEGA_LOCAL_DIR $MEGA_REMOTE_DIR"
+WorkingDirectory=/tmp/
+ExecStartPre=-/usr/bin/mkdir -p $MEGA_LOCAL_DIR
+ExecStartPre=/bin/sleep 45
+ExecStart=/usr/bin/megasimplesync $MEGA_LOCAL_DIR $MEGA_REMOTE_DIR
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
@@ -14,4 +17,3 @@ RestartSec=30s
[Install]
WantedBy=multi-user.target
-