[arch-commits] Commit in tailscale/repos/community-x86_64 (PKGBUILD PKGBUILD)
Morten Linderud
foxboron at gemini.archlinux.org
Sat Apr 30 13:23:57 UTC 2022
Date: Saturday, April 30, 2022 @ 13:23:57
Author: foxboron
Revision: 1191953
archrelease: copy trunk to community-x86_64
Added:
tailscale/repos/community-x86_64/PKGBUILD
(from rev 1191952, tailscale/trunk/PKGBUILD)
Deleted:
tailscale/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 118 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 59 insertions(+), 59 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-04-30 13:23:51 UTC (rev 1191952)
+++ PKGBUILD 2022-04-30 13:23:57 UTC (rev 1191953)
@@ -1,59 +0,0 @@
-# Maintainer: Morten Linderud <foxboron at archlinux.org>
-# Contributor: David Anderson <dave at natulte.net>
-
-pkgname=tailscale
-pkgver=1.24.0
-pkgrel=1
-pkgdesc="A mesh VPN that makes it easy to connect your devices, wherever they are."
-arch=("x86_64")
-url="https://tailscale.com"
-license=("MIT")
-makedepends=("git" "go")
-depends=("glibc")
-backup=("etc/default/tailscaled")
-# Important: Check if the version has been published before updating
-# curl -s "https://pkgs.tailscale.com/stable/?mode=json"
-_commit=f0e71f4a20d3a5179e47669fe913a18c2337cc80 #refs/tags/v1.24.0^{}
-source=("git+https://github.com/tailscale/tailscale.git#commit=${_commit}")
-sha256sums=('SKIP')
-
-pkgver() {
- cd "${pkgname}"
- git describe --tags | sed 's/^[vV]//;s/-/+/g'
-}
-
-prepare() {
- cd "${pkgname}"
- go mod vendor
-}
-
-build() {
- cd "${pkgname}"
- export CGO_CPPFLAGS="${CPPFLAGS}"
- export CGO_CFLAGS="${CFLAGS}"
- export CGO_CXXFLAGS="${CXXFLAGS}"
- export CGO_LDFLAGS="${LDFLAGS}"
- export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
- GO_LDFLAGS="\
- -linkmode=external \
- -X tailscale.com/version.Long=${pkgver} \
- -X tailscale.com/version.Short=$(cut -d+ -f1 <<< "${pkgver}") \
- -X tailscale.com/version.GitCommit=${_commit}"
- for cmd in ./cmd/tailscale ./cmd/tailscaled; do
- go build -v -tags xversion -ldflags "$GO_LDFLAGS" "$cmd"
- done
-}
-
-#TODO: Figure out why tests are failing
-# check() {
-# cd "${pkgname}"
-# go test $(go list ./... | grep -v tsdns_test)
-# }
-
-package() {
- cd "${pkgname}"
- install -Dm755 tailscale tailscaled -t "$pkgdir/usr/bin"
- install -Dm644 cmd/tailscaled/tailscaled.defaults "$pkgdir/etc/default/tailscaled"
- install -Dm644 cmd/tailscaled/tailscaled.service -t "$pkgdir/usr/lib/systemd/system"
- install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
-}
Copied: tailscale/repos/community-x86_64/PKGBUILD (from rev 1191952, tailscale/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-04-30 13:23:57 UTC (rev 1191953)
@@ -0,0 +1,59 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: David Anderson <dave at natulte.net>
+
+pkgname=tailscale
+pkgver=1.24.2
+pkgrel=1
+pkgdesc="A mesh VPN that makes it easy to connect your devices, wherever they are."
+arch=("x86_64")
+url="https://tailscale.com"
+license=("MIT")
+makedepends=("git" "go")
+depends=("glibc")
+backup=("etc/default/tailscaled")
+# Important: Check if the version has been published before updating
+# curl -s "https://pkgs.tailscale.com/stable/?mode=json"
+_commit=dce2409b15837f30885405b8b1d27e7b7fd6bf7a #refs/tags/v1.24.2^{}
+source=("git+https://github.com/tailscale/tailscale.git#commit=${_commit}")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${pkgname}"
+ git describe --tags | sed 's/^[vV]//;s/-/+/g'
+}
+
+prepare() {
+ cd "${pkgname}"
+ go mod vendor
+}
+
+build() {
+ cd "${pkgname}"
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+ GO_LDFLAGS="\
+ -linkmode=external \
+ -X tailscale.com/version.Long=${pkgver} \
+ -X tailscale.com/version.Short=$(cut -d+ -f1 <<< "${pkgver}") \
+ -X tailscale.com/version.GitCommit=${_commit}"
+ for cmd in ./cmd/tailscale ./cmd/tailscaled; do
+ go build -v -tags xversion -ldflags "$GO_LDFLAGS" "$cmd"
+ done
+}
+
+#TODO: Figure out why tests are failing
+# check() {
+# cd "${pkgname}"
+# go test $(go list ./... | grep -v tsdns_test)
+# }
+
+package() {
+ cd "${pkgname}"
+ install -Dm755 tailscale tailscaled -t "$pkgdir/usr/bin"
+ install -Dm644 cmd/tailscaled/tailscaled.defaults "$pkgdir/etc/default/tailscaled"
+ install -Dm644 cmd/tailscaled/tailscaled.service -t "$pkgdir/usr/lib/systemd/system"
+ install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+}
More information about the arch-commits
mailing list