summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 40801e9470fb12f52f31e052585ebdf047da229c (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
# Maintainer: Fraser P. Newton <fpnewton90@gmail.com>
pkgname=azure-storage-explorer
pkgver=1.12.0
pkgrel=2
pkgdesc="Storage Explorer allows you to view and interact with your Azure Storage resources."
arch=('x86_64')
url="https://github.com/microsoft/AzureStorageExplorer"
license=('CCPL' 'MIT')
depends=('gconf' 'libgnome-keyring' 'nodejs' 'gtk3' 'nss' 'libxss' 'libsecret' 'dotnet-runtime-2.2')
provides=('StorageExplorer')
source=("$pkgname-$pkgver.tar.gz::https://github.com/microsoft/AzureStorageExplorer/releases/download/v${pkgver}/Linux_StorageExplorer-linux-x64.tar.gz"
        "https://raw.githubusercontent.com/microsoft/AzureStorageExplorer/master/LICENSE")
sha256sums=('bbbd2edaeb1d0df4cccd0b6d248995b80e5d3f3e061463f915b75b8201690377'
            '9bbc1ea9fe5c96df01b311a2ac864d5b18fc87b9948bfd14770e4b44db755ee9')

prepare() {
    rm "$pkgname-$pkgver.tar.gz"
    rm LICENSE
}

package() {
    install -d "${pkgdir}/opt/${pkgname}"
    cp -a * "${pkgdir}/opt/${pkgname}"

    # Symlink the application in /usr/bin
    install -d "${pkgdir}/usr/bin"
    ln -s "/opt/${pkgname}/StorageExplorer" "${pkgdir}/usr/bin/${pkgname}"

    # Add the icon and desktop files
    install -D -m644 "resources/app/out/app/icon.png" "${pkgdir}/usr/share/icons/${pkgname}.png"
    install -D -m644 ../StorageExplorer.desktop "${pkgdir}/usr/share/applications/${pkgname}.desktop"

    # Install the license file
    install -D -m644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}