ci: add Gitea Actions CI, tag releases and AUR PKGBUILDs
CI / build (pull_request) Failing after 19s
CI / build (pull_request) Failing after 19s
This commit is contained in:
1 parent
ad50230829
commit
5ae1c7beb4
7 files changed
+228
No files matched your search
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
# Point the qtpotato PKGBUILD at a published release and regenerate .SRCINFO.
|
||||
#
|
||||
# Usage: packaging/aur/update-pkgbuild.sh <version> (e.g. 0.2.0, after the v0.2.0 release)
|
||||
set -euo pipefail
|
||||
|
||||
version="${1#v}"
|
||||
dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
url="https://git.trivk.dev/tri/QtPotato/releases/download/v$version"
|
||||
sum="$(curl -fsSL "$url/SHA256SUMS" | awk -v f="qtpotato-$version.tar.gz" '$2 == f { print $1 }')"
|
||||
[[ -n "$sum" ]] || { echo "qtpotato-$version.tar.gz not found in $url/SHA256SUMS" >&2; exit 1; }
|
||||
|
||||
cd "$dir/qtpotato"
|
||||
sed -i -e "s/^pkgver=.*/pkgver=$version/" -e "s/^pkgrel=.*/pkgrel=1/" \
|
||||
-e "s/^sha256sums=.*/sha256sums=('$sum')/" PKGBUILD
|
||||
makepkg --printsrcinfo > .SRCINFO
|
||||
cd "$dir/qtpotato-git"
|
||||
makepkg --printsrcinfo > .SRCINFO
|
||||
Reference in new issue
Block a user