summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoreugene2021-11-18 03:54:50 +0000
committereugene2021-11-18 03:54:50 +0000
commit080997601ef258f0e9f9ba2e0f3468a9753f413e (patch)
tree5ab3b8b479563cd6b70097467e65329ee0058068
parentbdf5021c0d8cba6a056986acfa4efe61c2f746cb (diff)
downloadaur-080997601ef258f0e9f9ba2e0f3468a9753f413e.tar.gz
adapt to download portal changes
-rw-r--r--PKGBUILD3
1 files changed, 1 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index c5e0054a65f1..6c26edacd8bf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,8 +11,7 @@ makedepends=(curl)
url="https://www.gnome-look.org/p/1084939/"
license=('GPL')
_url='https://www.gnome-look.org/dl?file_id=1515308735&file_type=application/x-bzip2&file_name=OSX-ElCap-(KDE).R2.tar.bz2&file_size=31214&has_torrent=0&project_id=1084939&link_type=download&is_external=false&external_link=null'
-_cookie="$(curl -sLv "$_url" 2>&1 | grep -Po '(?<=Set-Cookie: __ocs_id\=)[^;]+(?=;)')"
-source=("$(curl -sSL "$_url" -X 'POST' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64)' -H "Cookie: __ocs_id=$_cookie" | grep -Po '(?<=top.location.href \= ")[^"]+(?=")')")
+source=("$(curl -sSL "$_url" -X 'POST' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64)' -b "$(curl -sL -c - "$_url")" | tr -d ' ' | grep -Po '(?<=top.location.href\=")[^"]+(?=")')")
sha512sums=('7db6bc6266fc99358e35d203b767ffb9a6883bad40d8f4332f85214609859583c29e637a339cc1f386e581bc43cd9365088cc277c8ee1493c49d03f17ec45695')
package() {