aboutsummaryrefslogtreecommitdiffstats
path: root/gitea-cli
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-07-06 11:27:17 +0200
committerDanilo M. <danix@danix.xyz>2026-07-06 11:27:17 +0200
commit774d1944cd06215c9c1f2bcf842a1aed929e1f7c (patch)
treed2ff2c942ecdf6c0b01ef7c5c6c1af4a6df461a1 /gitea-cli
parent57b04742a1bbdc48601a008310bfdb4c2ee3d12a (diff)
downloadmy-slackbuilds-774d1944cd06215c9c1f2bcf842a1aed929e1f7c.tar.gz
my-slackbuilds-774d1944cd06215c9c1f2bcf842a1aed929e1f7c.zip
gitea-cli: read source under Content-Disposition name
slackrepo saves the gitea archive under its Content-Disposition name (tea-v$VERSION.tar.gz), not the URL path basename. Read that name. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'gitea-cli')
-rw-r--r--gitea-cli/gitea-cli.SlackBuild9
1 files changed, 5 insertions, 4 deletions
diff --git a/gitea-cli/gitea-cli.SlackBuild b/gitea-cli/gitea-cli.SlackBuild
index 033ddf3..9266402 100644
--- a/gitea-cli/gitea-cli.SlackBuild
+++ b/gitea-cli/gitea-cli.SlackBuild
@@ -65,11 +65,12 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-# The gitea archive URL basename is "v$VERSION.tar.gz" (that is the name
-# slackrepo/sbopkg place next to this script). It extracts to a top dir named
-# "$SRCNAM" (tea), not "$SRCNAM-$VERSION".
+# gitea serves the archive via Content-Disposition as "$SRCNAM-v$VERSION.tar.gz"
+# (tea-v$VERSION.tar.gz), and that is the name slackrepo/sbodl save it under,
+# NOT the URL path basename. It extracts to a top dir named "$SRCNAM" (tea),
+# not "$SRCNAM-$VERSION".
rm -rf $SRCNAM
-tar xvf $CWD/v$VERSION.tar.gz
+tar xvf $CWD/$SRCNAM-v$VERSION.tar.gz
cd $SRCNAM
chown -R root:root .