summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f4386c1e2a638cd749dfc51ea0934c886a0673d8 (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: awumii <awumii@protonmail.com>

pkgname=zerotier-desktop-ui-git
pkgver=1.8.4.r75.gaeee9eb
pkgrel=1
pkgdesc='Official ZeroTier Desktop Tray Application and UI'
url='https://github.com/zerotier/DesktopUI'
source=('git+https://github.com/zerotier/DesktopUI.git')
arch=('any')
license=('MPL2')
makedepends=('rust' 'meson' 'git')
depends=('zerotier-one' 'libappindicator-gtk3' 'gtk3' 'glib2')
conflicts=('zerotier-desktop-ui')
sha256sums=(SKIP)

build () {
  cd DesktopUI
  make official
}

package() {
  cd DesktopUI
  install -Dm755 target/release/zerotier_desktop_ui "${pkgdir}/usr/bin/zerotier_desktop_ui"
  install -Dm644 zerotier-ui.desktop "${pkgdir}/usr/share/applications/zerotier-ui.desktop"
  install -Dm644 ZeroTierIcon.png "${pkgdir}/usr/share/zerotier/ZeroTierIcon.png"
}

pkgver() {
    cd DesktopUI
    git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}