From 99b762fcb36b6a999dbe26a15cf87dbf42361278 Mon Sep 17 00:00:00 2001 From: Tim Biermann Date: Sat, 24 Feb 2024 00:22:49 +0100 Subject: [PATCH] tea: initial commit, version 0.9.2 --- tea/.footprint | 3 +++ tea/.signature | 5 +++++ tea/Pkgfile | 30 ++++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 tea/.footprint create mode 100644 tea/.signature create mode 100644 tea/Pkgfile diff --git a/tea/.footprint b/tea/.footprint new file mode 100644 index 000000000..dfd6b6688 --- /dev/null +++ b/tea/.footprint @@ -0,0 +1,3 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/tea diff --git a/tea/.signature b/tea/.signature new file mode 100644 index 000000000..ace0fe7d5 --- /dev/null +++ b/tea/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF37IwqPqVNGQsJuI5o1crMnK/4YW55Ue6ZINgl6ERRfNTDAQgbZqv7lqw04q06NVXWhuhFyxLfssPkvWCHj9n1g8= +SHA256 (Pkgfile) = 7aded177a247036247ce63705f9b6671a5b10aaa1c36884df8c8a5685809a7f5 +SHA256 (.footprint) = 52a35d977890c9cb0054bf4caecd00d696036622325ccd9d8d8205214de182ea +SHA256 (tea-0.9.2.tar.gz) = b5a944de8db7d5af4aa87e9640261c925f094d2b6d26c4faf2701773acab219b diff --git a/tea/Pkgfile b/tea/Pkgfile new file mode 100644 index 000000000..504988b9c --- /dev/null +++ b/tea/Pkgfile @@ -0,0 +1,30 @@ +# Description: A command line tool to interact with Gitea servers +# URL: https://gitea.com/gitea/tea +# Maintainer: Tim Biermann, tbier at posteo dot de +# Depends on: go + +name=tea +version=0.9.2 +release=1 +source=(https://gitea.com/gitea/tea/archive/v$version.tar.gz) +renames=($name-$version.tar.gz) + +build() { + cd $name + + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + + mkdir "$PKGMK_SOURCE_DIR/gopath" || true + export GOPATH="$PKGMK_SOURCE_DIR/gopath" + + go build \ + -trimpath \ + -buildmode=pie \ + -mod=readonly \ + -modcacherw \ + -o $name . + install -Dm755 $name $PKG/usr/bin/$name +}