void-packages/srcpkgs/tailscale/template
2021-07-31 08:27:06 +02:00

23 lines
804 B
Bash

# Template file for 'tailscale'
pkgname=tailscale
version=1.12.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.Long=${version}_${revision} (Void Linux)' -X 'tailscale.com/version.Short=${version}'"
make_dirs="/var/lib/tailscale 0755 root root"
hostmakedepends="git"
short_desc="Easy, secure, cross platform WireGuard, oauth2, and 2FA/SSO"
maintainer="Noel Cower <ncower@nil.dev>"
license="BSD-3-Clause"
homepage="https://tailscale.com"
distfiles="https://github.com/tailscale/tailscale/archive/v${version}.tar.gz"
checksum=9a94e6073f5e171c9ba6c3f5ca291bdae688c8e26fb586c3df4302204af77e86
post_install() {
vlicense LICENSE
vlicense PATENTS
vsv tailscaled
}