void-packages/srcpkgs/tailscale/template
2024-12-07 15:36:38 -05:00

30 lines
1 KiB
Bash

# Template file for 'tailscale'
pkgname=tailscale
version=1.78.1
revision=1
build_style=go
build_helper="qemu"
go_import_path="tailscale.com"
go_package="tailscale.com/cmd/tailscale tailscale.com/cmd/tailscaled"
go_build_tags='xversion'
go_ldflags="-X 'tailscale.com/version.longStamp=${version}_${revision} (Void Linux)'
-X 'tailscale.com/version.shortStamp=${version}'"
make_check_target="$go_package"
make_dirs="/var/lib/tailscale 0755 root root"
short_desc="Easy, secure, cross platform WireGuard, oauth2, and 2FA/SSO"
maintainer="classabbyamp <void@placeviolette.net>"
license="BSD-3-Clause"
homepage="https://tailscale.com"
changelog="https://tailscale.com/changelog"
distfiles="https://github.com/tailscale/tailscale/archive/v${version}.tar.gz"
checksum=dbc25cc241bb233f183475f003d5508af7b45add1ca548b35a6a6fea91fb91af
post_install() {
for sh in bash fish zsh; do
vtargetrun "${DESTDIR}/usr/bin/tailscale" completion "$sh" > "tailscale.${sh}"
vcompletion "tailscale.${sh}" "$sh"
done
vlicense LICENSE
vlicense PATENTS
vsv tailscaled
}