summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5c58bf653e9edd745b1635f6bd8a96f78b64fbfc (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
# Maintainer: Lev Lybin <aur@devtrue.net>

pkgname=synology-cloud-sync-decryption-tool
pkgver=018
pkgrel=1
pkgdesc="A desktop tool to decrypt data encrypted by Cloud Sync"
arch=('i686' 'x86_64')
url="https://www.synology.com/en-global/releaseNote/SynologyCloudSyncDecryptionTool"
license=('unknown')
depends=('qt5-base')

source_x86_64=(https://global.download.synology.com/download/Tools/SynologyCloudSyncDecryptionTool/${pkgver}/Linux/x86_64/SynologyCloudSyncDecryptionTool-${pkgver}_x64.tar.gz)
source_i686=(https://global.download.synology.com/download/Tools/SynologyCloudSyncDecryptionTool/${pkgver}/Linux/i686/SynologyCloudSyncDecryptionTool-${pkgver}.tar.gz)
md5sums_x86_64=('db128e6984441fd1cccf3149945777da')
md5sums_i686=('cc9cc5531ec33f3ee888bd3d4772d016')

prepare() {
    cd "${srcdir}"
}

package() {
    mkdir -p "${pkgdir}/opt/Synology/CloudSyncDecryptionTool/platforms"
    install -Dm755 SynologyCloudSyncDecryptionTool "${pkgdir}/opt/Synology/CloudSyncDecryptionTool/SynologyCloudSyncDecryptionTool"
    install -t "${pkgdir}/opt/Synology/CloudSyncDecryptionTool" *.so.*
    install -t "${pkgdir}/opt/Synology/CloudSyncDecryptionTool/platforms" platforms/*.so

    mkdir -p "${pkgdir}/usr/bin"
    ln -sf /opt/Synology/CloudSyncDecryptionTool/SynologyCloudSyncDecryptionTool "${pkgdir}/usr/bin/synology-cloud-sync-decryption-tool"
}