summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 355eca1404ea066ec2bd0828ad53e99b07125d15 (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
# Maintainer: DeedleFake <deedlefake@users.noreply.github.com>

pkgname=trayscale
pkgver=0.18.7
pkgrel=3
pkgdesc="An unofficial GUI wrapper for the Tailscale CLI client."
arch=(i686 x86_64 aarch64)
url="https://github.com/DeedleFake/trayscale"
license=('MIT')
depends=('gtk4' 'libadwaita>=1:1.7')
makedepends=('go>=2:1.21.0' 'gobject-introspection')
optdepends=('tailscale: provides daemon that manages connection')
provides=(trayscale)
source=("https://github.com/DeedleFake/trayscale/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('4709eddf7d85944b264e89f5939d31f5e2ca334b719a1cf1dc89b58302664aa4')

_gover=go1.26.0

build() {
  cd "$pkgname-$pkgver"
  if [[ "$(go env GOTOOLCHAIN)" == "local" ]]; then
    warning "GOTOOLCHAIN=local, which could cause the build to fail if the local version is out of date."
    warning "If the build fails, try running again with GOTOOLCHAIN=auto."
  fi
  ./dist.sh build "v$pkgver"
}

package() {
  cd "$pkgname-$pkgver"
  ./dist.sh install "$pkgdir/usr"
}

# vim: ts=2 sw=2 et