From a4f3f6881a5598118a7fafa334affb2570ae8d85 Mon Sep 17 00:00:00 2001
From: Marty Oehme <contact@martyoeh.me>
Date: Sun, 16 Mar 2025 13:39:13 +0100
Subject: [PATCH] Add localsend-go template

---
 srcpkgs/localsend-go/template | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 srcpkgs/localsend-go/template

diff --git a/srcpkgs/localsend-go/template b/srcpkgs/localsend-go/template
new file mode 100644
index 0000000..f15180d
--- /dev/null
+++ b/srcpkgs/localsend-go/template
@@ -0,0 +1,35 @@
+# Template file for 'localsend-go'
+pkgname=localsend-go
+version=1.2.5
+revision=1
+build_style=go
+go_import_path="localsend_cli"
+go_package="./cmd"
+depends="libcap-progs"
+short_desc="CLI for localsend implemented in Go"
+maintainer="Marty Oehme <contact@martyoeh.me>"
+license="MIT"
+homepage="https://github.com/meowrain/localsend-go"
+distfiles="${homepage}/archive/v${version}.tar.gz"
+checksum=48d6b94b7cbcf6b07400c7293401a0d329e15c6ab1f3493e31363a5525e73b00
+
+do_install() {
+    vbin ${GOPATH}/bin/cmd localsend_cli
+}
+
+# have to turn it off currently since
+# tui_test.go is trying to open a TTY which is not possible.
+# When it _does_ succeed it would just hang there anyway.
+do_check() {
+    :
+}
+
+post_install() {
+    vlicense LICENSE
+
+    vdoc doc/README_en.md
+    vdoc doc/README_jp.md
+    vdoc doc/README_zh.md
+
+    setcap cap_net_raw=+ep /usr/bin/localsend-go
+}