summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 318426e0d4c61cf034fef2eb151ea8c1c1e58ad2 (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>
# Contributor: Nick Ƙstergaard <oe.nick at gmail dot com>

pkgname=synology-assistant
pkgver=6.2.24922
_pkgver=6.2-24922
pkgrel=1
pkgdesc="It helps you set up and install DSM on your DiskStation"
arch=('i686' 'x86_64')
url="https://www.synology.com/en-global/releaseNote/Assistant"
license=('unknown')
install=synology-assistant.install
depends=('libpng12' 'libxrender' 'libxt' 'libxext' 'fontconfig')
source_x86_64=(https://global.download.synology.com/download/Tools/Assistant/${_pkgver}/Ubuntu/x86_64/synology-assistant_${_pkgver}_amd64.deb)
source_i686=(https://global.download.synology.com/download/Tools/Assistant/${_pkgver}/Ubuntu/i686/synology-assistant_${_pkgver}_i386.deb)
md5sums_i686=('ed1a7baca7c4116908d526207b8a54c0')
md5sums_x86_64=('e8b970d8b51c3d439f0b2dcb73d4b648')

prepare() {
    cd "${srcdir}"
    tar -zxf "${srcdir}/data.tar.gz"
}

package() {
    cp -rp opt "${pkgdir}/opt"

    mkdir -p "${pkgdir}/usr/bin"
    ln -sf /opt/Synology/SynologyAssistant/SynologyAssistant "${pkgdir}/usr/bin/synology-assistant"

    install -Dm644 usr/share/applications/synology-assistant.desktop "${pkgdir}/usr/share/applications/synology-assistant.desktop"
}