diff options
author | Michael Serajnik | 2021-04-13 17:20:33 +0200 |
---|---|---|
committer | Michael Serajnik | 2021-04-13 17:20:33 +0200 |
commit | bf690376191e0fe557636ed4f8c2f9c842a2eb58 (patch) | |
tree | 0c786879835a2993832aba047ccd5c5fcafc6bc1 | |
parent | 0d2abb42155a441d1f96ea1dd5fdd0695bd6ea94 (diff) | |
download | aur-bf690376191e0fe557636ed4f8c2f9c842a2eb58.tar.gz |
Patch upstream not determining the correct archive url
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 15 | ||||
-rw-r--r-- | ignore_sha512sum.patch | 13 |
4 files changed, 32 insertions, 6 deletions
@@ -1,12 +1,14 @@ pkgbase = cproton-git pkgdesc = Script to make it easier to update Proton GE to the latest version pkgver = 0.2.1.r2.g0805f86 - pkgrel = 1 + pkgrel = 2 url = https://github.com/flubberding/ProtonUpdater arch = any license = MIT source = git+https://github.com/flubberding/ProtonUpdater.git - md5sums = SKIP + source = ignore_sha512sum.patch + sha512sums = SKIP + sha512sums = dafa6a908e191f118c8081b3a432d1dd0696281953653eb5ee5e7f655d2eb770910979a3be22bff0d0f5218ffc3691740945a60a85addd289250088a6024b0c5 pkgname = cproton-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..150782001d9a --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/pkg +/ProtonUpdater +/src +/*.tar.zst @@ -1,20 +1,27 @@ -# Maintainer: Michael Serajnik <ms dot mserajnik dot at> +# Maintainer: Michael Serajnik <m at mser dot at> pkgname=cproton-git _pkgname=ProtonUpdater pkgver=0.2.1.r2.g0805f86 -pkgrel=1 +pkgrel=2 pkgdesc="Script to make it easier to update Proton GE to the latest version" arch=('any') url="https://github.com/flubberding/ProtonUpdater" license=('MIT') -source=("git+https://github.com/flubberding/ProtonUpdater.git") -md5sums=('SKIP') +source=("git+https://github.com/flubberding/ProtonUpdater.git" + "ignore_sha512sum.patch") +sha512sums=('SKIP' + 'dafa6a908e191f118c8081b3a432d1dd0696281953653eb5ee5e7f655d2eb770910979a3be22bff0d0f5218ffc3691740945a60a85addd289250088a6024b0c5') pkgver() { cd "${srcdir}/${_pkgname}" git describe --long --tags | sed "s/^v//;s/\([^-]*-g\)/r\1/;s/-/./g" } +prepare() { + cd "${srcdir}/${_pkgname}" + git apply < ../ignore_sha512sum.patch || true +} + package() { install -Dm644 "$srcdir/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" install -Dm755 "$srcdir/$_pkgname/cproton.sh" "$pkgdir/usr/bin/cproton" diff --git a/ignore_sha512sum.patch b/ignore_sha512sum.patch new file mode 100644 index 000000000000..6ea0081e22d1 --- /dev/null +++ b/ignore_sha512sum.patch @@ -0,0 +1,13 @@ +diff --git a/cproton.sh b/cproton.sh +index 7f51d46..e5c38d2 100644 +--- a/cproton.sh ++++ b/cproton.sh +@@ -86,7 +86,7 @@ InstallationPrompt() { + + if [ -z "$parameter" ]; then + version="$(curl -s $latesturi | grep -E -m1 "tag_name" | cut -d \" -f4)" +- url=$(curl -s $latesturi | grep -E -m1 "browser_download_url.*Proton" | cut -d \" -f4) ++ url=$(curl -s $latesturi | grep -E -m1 "browser_download_url.*.tar.gz" | cut -d \" -f4) + if [ -d "$dstpath"/Proton-"$version" ]; then + echo "Proton $version is the latest version and is already installed." + else |