ci(release): attach source archives to release and use them for AUR package

Gitea's /archive/ endpoint is disabled, which broke the AUR source download.
Build source tar.gz/zip with git archive, upload as release assets, and point
the PKGBUILD and checksum step at the release asset.
This commit is contained in:
2026-10-12 18:27:53 +02:00
parent 917480670f
commit cc4829046d
2 changed files with 12 additions and 5 deletions
+4 -4
View File
@@ -12,11 +12,11 @@ optdepends=(
'docker: Docker container runtime support'
)
makedepends=('go')
source=("$pkgname-$pkgver.zip::$url/archive/v$pkgver.zip")
source=("$pkgname-$pkgver.zip::$url/releases/download/v$pkgver/$pkgname-v$pkgver-source.zip")
sha256sums=('SKIP')
build() {
cd "$pkgname"
cd "$pkgname-$pkgver"
export CGO_ENABLED=0
go build \
-trimpath \
@@ -25,12 +25,12 @@ build() {
}
check() {
cd "$pkgname"
cd "$pkgname-$pkgver"
go test ./...
}
package() {
cd "$pkgname"
cd "$pkgname-$pkgver"
# Binary
install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"