void-packages/srcpkgs/tailscale/template

25 lines
863 B
Bash

# Template file for 'tailscale'
pkgname=tailscale
version=1.62.1
revision=1
build_style=go
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_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://github.com/tailscale/tailscale/releases"
distfiles="https://github.com/tailscale/tailscale/archive/v${version}.tar.gz"
checksum=22737fae37e971fecdf49d6b741b99988868aa3f1e683e67e14b872a2c49ca1c
post_install() {
vlicense LICENSE
vlicense PATENTS
vsv tailscaled
}