diff options
| author | Danilo M. <danix@danix.xyz> | 2026-07-06 11:08:40 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-07-06 11:08:40 +0200 |
| commit | 8b92a3e2669ec6144ec06bf9b28ed8c6fabb40e8 (patch) | |
| tree | d82c365f256a93a825b0299478394bcd0f7261e5 | |
| parent | 3ab88b314055d006d047baf6fe4daac14993d25c (diff) | |
| download | my-slackbuilds-8b92a3e2669ec6144ec06bf9b28ed8c6fabb40e8.tar.gz my-slackbuilds-8b92a3e2669ec6144ec06bf9b28ed8c6fabb40e8.zip | |
gitea-cli: rename from tea to avoid SBo conflict
SBo already has an unrelated "tea" package (a text editor). Rename the
package to gitea-cli; the installed binary stays /usr/bin/tea.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
| -rw-r--r-- | .extras/docs/superpowers/specs/2026-07-06-gitea-cli-slackbuild-design.md (renamed from .extras/docs/superpowers/specs/2026-07-06-tea-slackbuild-design.md) | 13 | ||||
| -rw-r--r-- | .extras/nvchecker.toml | 2 | ||||
| -rw-r--r-- | gitea-cli/README (renamed from tea/README) | 6 | ||||
| -rw-r--r-- | gitea-cli/gitea-cli.SlackBuild (renamed from tea/tea.SlackBuild) | 19 | ||||
| -rw-r--r-- | gitea-cli/gitea-cli.info (renamed from tea/tea.info) | 2 | ||||
| -rw-r--r-- | gitea-cli/slack-desc | 19 | ||||
| -rw-r--r-- | tea/slack-desc | 19 |
7 files changed, 48 insertions, 32 deletions
diff --git a/.extras/docs/superpowers/specs/2026-07-06-tea-slackbuild-design.md b/.extras/docs/superpowers/specs/2026-07-06-gitea-cli-slackbuild-design.md index ad12c9e..1c563ad 100644 --- a/.extras/docs/superpowers/specs/2026-07-06-tea-slackbuild-design.md +++ b/.extras/docs/superpowers/specs/2026-07-06-gitea-cli-slackbuild-design.md @@ -1,12 +1,19 @@ -# SlackBuild: tea (gitea CLI client) +# SlackBuild: gitea-cli (gitea CLI client, command "tea") Date: 2026-07-06 Maintainer: danix ## Goal -Package `tea` (the Gitea command-line client) as a SlackBuild built from source, -for the personal repo. Upstream: https://gitea.com/gitea/tea +Package the Gitea command-line client as a SlackBuild built from source, for the +personal repo. Upstream: https://gitea.com/gitea/tea + +## Naming + +The package is named `gitea-cli`, NOT `tea`: SBo already has an unrelated `tea` +package (a text editor) in the development category. The SlackBuild uses +`PRGNAM=gitea-cli` and `SRCNAM=tea`; the upstream tarball's top dir and the +installed binary (`/usr/bin/tea`) both keep the upstream name `tea`. ## Target: personal repo only diff --git a/.extras/nvchecker.toml b/.extras/nvchecker.toml index 4dd2403..d514369 100644 --- a/.extras/nvchecker.toml +++ b/.extras/nvchecker.toml @@ -120,7 +120,7 @@ regex = "UrbanTerror(\\d+)_full\\.zip" from_pattern = "(\\d)(\\d)(\\d)" to_pattern = "\\1.\\2.\\3" -[tea] +[gitea-cli] source = "gitea" gitea = "gitea/tea" use_max_tag = true diff --git a/tea/README b/gitea-cli/README index bdb6df7..072bcae 100644 --- a/tea/README +++ b/gitea-cli/README @@ -1,4 +1,8 @@ -tea (Gitea command line tool) +gitea-cli (Gitea command line tool) + +This package provides "tea", the official Gitea command line client. It +is named gitea-cli here because SBo already has an unrelated "tea" +package (a text editor). The installed command is still called "tea". tea is the official command line tool for Gitea and Forgejo. It talks to a server through the Gitea API and lets you manage repositories, diff --git a/tea/tea.SlackBuild b/gitea-cli/gitea-cli.SlackBuild index a779647..53a6fed 100644 --- a/tea/tea.SlackBuild +++ b/gitea-cli/gitea-cli.SlackBuild @@ -26,7 +26,11 @@ cd $(dirname $0) ; CWD=$(pwd) -PRGNAM=tea +# Package is named gitea-cli (SBo already has an unrelated "tea" text editor), +# but the upstream project, its tarball's top dir, and the installed binary are +# all called "tea". SRCNAM tracks the upstream name. +PRGNAM=gitea-cli +SRCNAM=tea VERSION=${VERSION:-0.14.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -62,11 +66,11 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP # The gitea archive URL basename is "v$VERSION.tar.gz"; sbodl saves it as -# "$PRGNAM-v$VERSION.tar.gz". It also extracts to a top dir named "tea", not -# "tea-$VERSION". -rm -rf $PRGNAM +# "$PRGNAM-v$VERSION.tar.gz". It extracts to a top dir named "$SRCNAM" (tea), +# not "$SRCNAM-$VERSION". +rm -rf $SRCNAM tar xvf $CWD/$PRGNAM-v$VERSION.tar.gz -cd $PRGNAM +cd $SRCNAM chown -R root:root . find . \ @@ -108,8 +112,9 @@ export GOFLAGS="$MOD_STRATEGY -trimpath -modcacherw" LIB_LDFLAGS="-linkmode=external -s -w -X gitea.dev/tea/modules/version.Version=$VERSION" mkdir -p "$PKG"/usr/bin -# Compile all packages in the module -go build -ldflags="$LIB_LDFLAGS" -o "$PKG"/usr/bin/$PRGNAM . +# Compile all packages in the module. The binary is installed as "tea" +# (SRCNAM), the upstream command name, even though the package is gitea-cli. +go build -ldflags="$LIB_LDFLAGS" -o "$PKG"/usr/bin/$SRCNAM . # Optional: Clean up the temporary Go cache after build to save space rm -rf "$GOPATH" diff --git a/tea/tea.info b/gitea-cli/gitea-cli.info index baf13ec..4ce65b2 100644 --- a/tea/tea.info +++ b/gitea-cli/gitea-cli.info @@ -1,4 +1,4 @@ -PRGNAM="tea" +PRGNAM="gitea-cli" VERSION="0.14.2" HOMEPAGE="https://gitea.com/gitea/tea" DOWNLOAD="https://gitea.com/gitea/tea/archive/v0.14.2.tar.gz" diff --git a/gitea-cli/slack-desc b/gitea-cli/slack-desc new file mode 100644 index 0000000..a1d4a2e --- /dev/null +++ b/gitea-cli/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +gitea-cli: gitea-cli (Gitea command line tool) +gitea-cli: +gitea-cli: tea is the official command line tool to interact with Gitea and +gitea-cli: Forgejo servers. It lets you manage repositories, issues, pull +gitea-cli: requests, releases, labels, milestones and more, from the +gitea-cli: terminal, using the Gitea API. The installed command is "tea". +gitea-cli: +gitea-cli: It is written in Go, distributed as a single static binary. +gitea-cli: +gitea-cli: Homepage: https://gitea.com/gitea/tea +gitea-cli: diff --git a/tea/slack-desc b/tea/slack-desc deleted file mode 100644 index 2ab4cfe..0000000 --- a/tea/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' -# on the right side marks the last column you can put a character in. You must -# make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':' except on otherwise blank lines. - - |-----handy-ruler------------------------------------------------------| -tea: tea (Gitea command line tool) -tea: -tea: tea is the official command line tool to interact with Gitea and -tea: Forgejo servers. It lets you manage repositories, issues, pull -tea: requests, releases, labels, milestones and more, straight from the -tea: terminal, using the Gitea API. -tea: -tea: It is written in Go and distributed as a single static binary. -tea: -tea: Homepage: https://gitea.com/gitea/tea -tea: |
