Update to 9.41.1

This commit is contained in:
TBK 2026-07-25 16:27:15 +02:00
parent 8b612e9129
commit 9d664acf47
3 changed files with 33 additions and 12 deletions

View File

@ -1,6 +1,6 @@
pkgbase = termius pkgbase = termius
pkgdesc = Desktop SSH Client pkgdesc = Desktop SSH Client
pkgver = 9.40.1 pkgver = 9.41.1
pkgrel = 1 pkgrel = 1
url = https://www.termius.com/ url = https://www.termius.com/
arch = x86_64 arch = x86_64
@ -24,10 +24,10 @@ pkgbase = termius
optdepends = libappindicator-gtk3 optdepends = libappindicator-gtk3
options = !strip options = !strip
options = !debug options = !debug
source = termius-9.40.1.snap::https://api.snapcraft.io/api/v1/snaps/download/WkTBXwoX81rBe3s3OTt3EiiLKBx2QhuS_264.snap source = termius-9.41.1.snap::https://api.snapcraft.io/api/v1/snaps/download/WkTBXwoX81rBe3s3OTt3EiiLKBx2QhuS_265.snap
source = termius.desktop source = termius.desktop
source = tos.html source = tos.html
sha512sums = 090f995c33fc449ad97e9f9fd46744cbaae878ba248fa3b098370755118d6c3e5d72ed78cf38cae499985f1b2bf81d8d47d91f3e4c50c5c706d0bd024b3f4e8a sha512sums = 7ea3f2b6512d8488536dd08ec8ca04ecab0972987c6ae52b47c5aaeaf8647d0beb6a18937767a31a2e8cc6df7ca19e190db430539c6fdc1946d3be4c7b4b766c
sha512sums = f1ce576d42a624842c9d08807c11580421b708b4bd7fac3aa9874769735df87566012e8fc0f993b08618f31d2f38588cd83d8572a2700f35d42e2761984ca5d0 sha512sums = f1ce576d42a624842c9d08807c11580421b708b4bd7fac3aa9874769735df87566012e8fc0f993b08618f31d2f38588cd83d8572a2700f35d42e2761984ca5d0
sha512sums = 6ac7c082d1adba92dd911f46f9926f702be0f92a9843e6252364477d81364569eeeee9b37170a6d9000fde644588734cb6a11d165fc0aff3dbfbcd6ad353ca96 sha512sums = 6ac7c082d1adba92dd911f46f9926f702be0f92a9843e6252364477d81364569eeeee9b37170a6d9000fde644588734cb6a11d165fc0aff3dbfbcd6ad353ca96

View File

@ -2,7 +2,7 @@
# Contributor: TBK <aur at jjtc dot eu> # Contributor: TBK <aur at jjtc dot eu>
pkgname=termius pkgname=termius
pkgver=9.40.1 pkgver=9.41.1
pkgrel=1 pkgrel=1
pkgdesc="Desktop SSH Client" pkgdesc="Desktop SSH Client"
url="https://www.termius.com/" url="https://www.termius.com/"
@ -17,11 +17,11 @@ options=('!strip' '!debug')
# curl -H 'X-Ubuntu-Series: 16' https://api.snapcraft.io/api/v1/snaps/details/termius-app | jq '.download_url' -r # curl -H 'X-Ubuntu-Series: 16' https://api.snapcraft.io/api/v1/snaps/details/termius-app | jq '.download_url' -r
# curl -H 'X-Ubuntu-Series: 16' https://api.snapcraft.io/api/v1/snaps/details/termius-app | jq '.version' -r # curl -H 'X-Ubuntu-Series: 16' https://api.snapcraft.io/api/v1/snaps/details/termius-app | jq '.version' -r
source=( source=(
"$pkgname-$pkgver.snap::https://api.snapcraft.io/api/v1/snaps/download/WkTBXwoX81rBe3s3OTt3EiiLKBx2QhuS_264.snap" "$pkgname-$pkgver.snap::https://api.snapcraft.io/api/v1/snaps/download/WkTBXwoX81rBe3s3OTt3EiiLKBx2QhuS_265.snap"
"termius.desktop" "termius.desktop"
"tos.html" "tos.html"
) )
sha512sums=('090f995c33fc449ad97e9f9fd46744cbaae878ba248fa3b098370755118d6c3e5d72ed78cf38cae499985f1b2bf81d8d47d91f3e4c50c5c706d0bd024b3f4e8a' sha512sums=('7ea3f2b6512d8488536dd08ec8ca04ecab0972987c6ae52b47c5aaeaf8647d0beb6a18937767a31a2e8cc6df7ca19e190db430539c6fdc1946d3be4c7b4b766c'
'f1ce576d42a624842c9d08807c11580421b708b4bd7fac3aa9874769735df87566012e8fc0f993b08618f31d2f38588cd83d8572a2700f35d42e2761984ca5d0' 'f1ce576d42a624842c9d08807c11580421b708b4bd7fac3aa9874769735df87566012e8fc0f993b08618f31d2f38588cd83d8572a2700f35d42e2761984ca5d0'
'6ac7c082d1adba92dd911f46f9926f702be0f92a9843e6252364477d81364569eeeee9b37170a6d9000fde644588734cb6a11d165fc0aff3dbfbcd6ad353ca96') '6ac7c082d1adba92dd911f46f9926f702be0f92a9843e6252364477d81364569eeeee9b37170a6d9000fde644588734cb6a11d165fc0aff3dbfbcd6ad353ca96')

33
upd.sh
View File

@ -1,18 +1,39 @@
#!/bin/sh #!/bin/sh
# Update the termius AUR package to the latest snap release.
# Any failing step aborts the script before the git commit.
set -eu
cd "$(dirname "$0")"
# Get new version info # Get new version info
URL=$(curl -H 'X-Ubuntu-Series: 16' https://api.snapcraft.io/api/v1/snaps/details/termius-app | jq '.download_url' -r | cut -d "_" -f2) INFO=$(curl -fsS -H 'X-Ubuntu-Series: 16' https://api.snapcraft.io/api/v1/snaps/details/termius-app)
VER=$(curl -H 'X-Ubuntu-Series: 16' https://api.snapcraft.io/api/v1/snaps/details/termius-app | jq '.version' -r) VER=$(printf '%s\n' "$INFO" | jq -er '.version')
REV=$(printf '%s\n' "$INFO" | jq -er '.download_url' | grep -o '_[0-9]\+\.snap$')
case $VER in
*[!0-9A-Za-z._+-]*|'')
echo "Unexpected version '$VER'" >&2
exit 1
;;
esac
# Nothing to do if PKGBUILD is already at this version and committed
if [ "$VER" = "$(sed -n 's/^pkgver=//p' PKGBUILD)" ] \
&& [ -z "$(git status --porcelain -- PKGBUILD .SRCINFO)" ]; then
echo "Already up to date ($VER)"
exit 0
fi
# Update PKGBUILD # Update PKGBUILD
sed -i "s/_[0-9]\+.snap/_$URL/g" PKGBUILD sed -i "s/_[0-9]\+\.snap/$REV/g" PKGBUILD
sed -i "s/pkgver=.*$/pkgver=$VER/g" PKGBUILD sed -i "s/^pkgver=.*$/pkgver=$VER/" PKGBUILD
# Calc new hash # Calc new hash
updpkgsums updpkgsums
# Build & install pkg # Build & install pkg
makepkg -si makepkg -sif --noconfirm
# Update .SRCINFO # Update .SRCINFO
makepkg --printsrcinfo > .SRCINFO makepkg --printsrcinfo > .SRCINFO
@ -24,4 +45,4 @@ git commit -m "Update to $VER"
# Cleanup # Cleanup
rm -rf pkg/ src/ *.snap *.pkg.tar.zst rm -rf pkg/ src/ *.snap *.pkg.tar.zst
printf "\nAll done!\nRemember to git push!\n" printf '\nAll done!\nRemember to git push!\n'