diff options
author | archibald869 | 2019-02-28 16:20:48 +0100 |
---|---|---|
committer | archibald869 | 2019-02-28 16:20:48 +0100 |
commit | df2b053c7649c0ed6e5e9fcdbb94045804166414 (patch) | |
tree | 869ddd9c8e735d928c7648319281ac71f603f70a | |
parent | 05d23706ea682b66771ad23aecf1ed18d8409a57 (diff) | |
download | aur-df2b053c7649c0ed6e5e9fcdbb94045804166414.tar.gz |
Add authentication request being necessary for download
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 14 |
2 files changed, 11 insertions, 7 deletions
@@ -1,8 +1,8 @@ pkgbase = freefilesync-bin pkgdesc = Folder comparison and synchronization pkgver = 10.9 - pkgrel = 3 - url = https://www.freefilesync.org/ + pkgrel = 4 + url = https://freefilesync.org arch = i686 arch = x86_64 license = GPL3 @@ -3,16 +3,16 @@ pkgname=freefilesync-bin _pkgname=freefilesync pkgver=10.9 -pkgrel=3 +pkgrel=4 pkgdesc="Folder comparison and synchronization" arch=("i686" "x86_64") -url="https://www.freefilesync.org/" +url="https://freefilesync.org" license=("GPL3") provides=("freefilesync") conflicts=("freefilesync") depends=(gtk2 lib32-fontconfig lib32-libx11 libxxf86vm lib32-libsm) source=( - "${pkgname}-${pkgver}.tar.gz::https://freefilesync.org/download/FreeFileSync_${pkgver}_Linux.tar.gz" + "${pkgname}-${pkgver}.tar.gz::${url}/download/FreeFileSync_${pkgver}_Linux.tar.gz" FreeFileSync.desktop FreeFileSync.png RealTimeSync.desktop @@ -26,8 +26,12 @@ sha256sums=( "23c68af45d34f41fdb76886067b71af4dd3fe14f2dd60f73193b2052dc333bf6" ) options=(!strip) -DLAGENTS=("https::/usr/bin/curl -fLC - --retry 5 --retry-delay 3 \ - -A Mozilla -e 'https://freefilesync.org/download.php;auto' -o %o %u") +DLAGENTS=("https::/usr/bin/curl -fLC - --retry 5 --retry-delay 3 -A Mozilla -o %o %u") + +_auth_request="$(\ + echo "Authenticating for download ..." >&2; \ + /usr/bin/curl -fsSL -A Mozilla "$url/cookie/load-consent.php" \ +)" package() { _pkg=FreeFileSync |