summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cd90516e54055d9d313d8cd65c6d5f67b1a06895 (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
# Maintainer: Jan Keith Darunday <aur@jkcdarunday.mozmail.com>

pkgname=swarm-desktop-bin
pkgver=0.29.0
pkgrel=1
pkgdesc='Swarm client implemented in Go, basic building block for Swarm Network'
arch=('x86_64' 'aarch64')
url='https://github.com/ethersphere/swarm-desktop'
license=('BSD')
depends=('gtk3' 'nspr' 'nss' 'alsa-lib')
provides=('swarm-desktop')
conflicts=('swarm-desktop')
source=('LICENSE')
source_x86_64=("$pkgname-$pkgver-x86_64.deb::$url/releases/download/v$pkgver/swarm-desktop_${pkgver}_amd64.deb")
source_aarch64=("$pkgname-$pkgver-aarch64.deb::$url/releases/download/v$pkgver/swarm-desktop_${pkgver}_arm64.deb")
sha256sums=('4be8d688c385633c38b039843922abaf78eef2a3a762add25ade4dcb13de6cd3')
sha256sums_x86_64=('54c8e17b0ab6672906cdd218600ad9d97f04110bc61f6eaec6db2f5298c28b87')
sha256sums_aarch64=('466976d53b2f6da6dd576dd83d03161a51fc0efca205bb3db875b727139bc1c5')

prepare() {
    bsdtar -xf data.tar.zst
}

package() {
    install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
    install -Dm644 usr/share/applications/swarm-desktop.desktop -t "$pkgdir/usr/share/applications/"
    install -Dm644 usr/share/doc/swarm-desktop/copyright -t "$pkgdir/usr/share/doc/swarm-desktop/"
    install -Dm644 usr/share/lintian/overrides/swarm-desktop -t "$pkgdir/usr/share/lintian/overrides/"
    install -Dm644 usr/share/pixmaps/swarm-desktop.png -t "$pkgdir/usr/share/pixmaps/"

    install -dm755 "$pkgdir/opt"
    cp -r --no-preserve=ownership usr/lib/swarm-desktop "$pkgdir/opt/swarm-desktop"

    install -dm755 "$pkgdir/usr/bin/"
    ln -s /opt/swarm-desktop/swarm-desktop "$pkgdir/usr/bin/swarm-desktop"
}