summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 09233ab33e21cbbb8bdffdf465f5f1b6eec397fc (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
# Maintainer: Fraser P. Newton <fpnewton90@gmail.com>
pkgname=azure-storage-explorer
pkgver=1.16.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=('nodejs' 'gtk3' 'nss' 'libxss' 'libsecret' 'dotnet-runtime-2.2')
provides=('azure-storage-explorer')
source=("$pkgname-$pkgver.tar.gz::https://github.com/microsoft/AzureStorageExplorer/releases/download/v${pkgver}/Linux_StorageExplorer-x64.tar.gz"
        "https://raw.githubusercontent.com/microsoft/AzureStorageExplorer/master/LICENSE"
	"StorageExplorer.desktop")
sha256sums=('a7b481e07bf9049288e819aa842211a3d1f1ab7e6d4dd7aeef8ff72323f6acb4'
            '9bbc1ea9fe5c96df01b311a2ac864d5b18fc87b9948bfd14770e4b44db755ee9'
            'ed90ef85054cd2860d6c0e123a0db52a81014a6433e02952a57926ab115b7717')

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

package() {
    # Install application
    install -d "${pkgdir}/opt/${pkgname}"
    install -m 644 "chrome_100_percent.pak" "${pkgdir}/opt/${pkgname}/"
    install -m 644 "chrome_200_percent.pak" "${pkgdir}/opt/${pkgname}/"
    install -m 755 "chrome-sandbox" "${pkgdir}/opt/${pkgname}/"
    install -m 755 "crashpad_handler" "${pkgdir}/opt/${pkgname}/"
    install -m 644 "icudtl.dat" "${pkgdir}/opt/${pkgname}/"
    install -m 644 "libEGL.so" "${pkgdir}/opt/${pkgname}/"
    install -m 644 "libffmpeg.so" "${pkgdir}/opt/${pkgname}/"
    install -m 644 "libGLESv2.so" "${pkgdir}/opt/${pkgname}/"
    install -m 644 "libvk_swiftshader.so" "${pkgdir}/opt/${pkgname}/"
    install -m 644 "resources.pak" "${pkgdir}/opt/${pkgname}/"
    install -m 644 "snapshot_blob.bin" "${pkgdir}/opt/${pkgname}/"
    install -m 755 "StorageExplorer" "${pkgdir}/opt/${pkgname}/"
    install -m 755 "StorageExplorerExe" "${pkgdir}/opt/${pkgname}/"
    install -m 755 "StorageExplorerSnap" "${pkgdir}/opt/${pkgname}/"
    install -m 644 "v8_context_snapshot.bin" "${pkgdir}/opt/${pkgname}/"
    install -m 644 "vk_swiftshader_icd.json" "${pkgdir}/opt/${pkgname}/"
    cp -r "locales" "${pkgdir}/opt/${pkgname}/"
    cp -r "resources" "${pkgdir}/opt/${pkgname}/"
    cp -r "swiftshader" "${pkgdir}/opt/${pkgname}/"

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

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

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