Date: Thursday, May 11, 2023 @ 09:10:14
  Author: gromit
Revision: 1459904

archrelease: copy trunk to community-testing-x86_64

Added:
  tailscale/repos/community-testing-x86_64/
  tailscale/repos/community-testing-x86_64/PKGBUILD
    (from rev 1459903, tailscale/trunk/PKGBUILD)

----------+
 PKGBUILD |   63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 63 insertions(+)

Copied: tailscale/repos/community-testing-x86_64/PKGBUILD (from rev 1459903, 
tailscale/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD                           (rev 0)
+++ community-testing-x86_64/PKGBUILD   2023-05-11 09:10:14 UTC (rev 1459904)
@@ -0,0 +1,63 @@
+# Maintainer: Morten Linderud <[email protected]>
+# Maintainer: Christian Heusel <[email protected]>
+# Contributor: David Anderson <[email protected]>
+
+pkgname=tailscale
+pkgver=1.40.1
+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=3589beb7b4bb6ad42adb886412b23ee806c45489 # refs/tags/v1.40.1
+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}"
+    # pacman bug
+    # export GOPATH="${srcdir}"
+    export GOFLAGS="-buildmode=pie -mod=readonly -modcacherw"
+    GO_LDFLAGS="\
+        -compressdwarf=false \
+        -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"
+}

Reply via email to