diff options
author | Martin Rys | 2023-10-08 15:16:10 +0200 |
---|---|---|
committer | Martin Rys | 2023-10-08 15:16:10 +0200 |
commit | 7862616053916c8b077499ab79017e5ee2faee94 (patch) | |
tree | 83d7832af875d9074ee3389c33ef42483b0329e2 | |
parent | 6e6da06d1e3384e5a4d73cd71740c8129aceb112 (diff) | |
download | aur-nvflash.tar.gz |
Remove prepare() function and switch to DLAGENTS, use checksums
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 23 insertions, 18 deletions
@@ -1,7 +1,7 @@ pkgbase = nvflash pkgdesc = A tool to update the the firmware of Nvidia display adapters. pkgver = 5.814 - pkgrel = 1 + pkgrel = 2 url = https://www.techpowerup.com/download/nvidia-nvflash/ arch = x86_64 arch = i686 @@ -9,5 +9,7 @@ pkgbase = nvflash license = unknown makedepends = wget makedepends = unzip + source = nvflash-5.814.zip::https://www.techpowerup.com/download/nvidia-nvflash/ + sha256sums = 989c17bba1393bdcf4971cfae713ead8629fda4e1db37272d8e98575a85c3c68 pkgname = nvflash @@ -3,31 +3,34 @@ # Shayne Hartford<shayneehartford@gmail.com> pkgname=nvflash pkgver=5.814 -pkgrel=1 +pkgrel=2 pkgdesc="A tool to update the the firmware of Nvidia display adapters." url="https://www.techpowerup.com/download/nvidia-nvflash/" arch=('x86_64' 'i686' 'aarch64') license=('unknown') makedepends=('wget' 'unzip') +DLAGENTS=("https::/usr/bin/wget --method POST --header 'content-type:\ application/x-www-form-urlencoded' --body-data id=2271&server_id=8 -O %o %u") +source=("${pkgname}-${pkgver}.zip::https://www.techpowerup.com/download/nvidia-nvflash/") +sha256sums=('989c17bba1393bdcf4971cfae713ead8629fda4e1db37272d8e98575a85c3c68') -prepare() { - wget \ - --method POST \ - --header 'content-type: application/x-www-form-urlencoded' \ - --body-data 'id=2271&server_id=8' \ - --output-document="${pkgname}-${pkgver}.zip" \ - "${url}" - -# Would be nice to get rid of the wget dependency, but I can't figure it out, here's one of my attempts - -# curl -X POST -L --post301 --post302 \ -# -H 'Content-Type: application/x-www-form-urlencoded' \ -# -H 'User-Agent: Wget/1.21.4' \ -# -d 'id=2271&server_id=8' \ -# -o "${pkgname}-${pkgver}.zip" \ +#prepare() { +# wget \ +# --method POST \ +# --header 'content-type: application/x-www-form-urlencoded' \ +# --body-data 'id=2271&server_id=8' \ +# --output-document="${pkgname}-${pkgver}.zip" \ # "${url}" - unzip -o "${pkgname}-${pkgver}.zip" -} +## Would be nice to get rid of the wget dependency, but I can't figure it out, here's one of my attempts - +## curl -X POST -L --post301 --post302 \ +## -H 'Content-Type: application/x-www-form-urlencoded' \ +## -H 'User-Agent: Wget/1.21.4' \ +## -d 'id=2271&server_id=8' \ +## -o "${pkgname}-${pkgver}.zip" \ +## "${url}" + +# unzip -o "${pkgname}-${pkgver}.zip" +#} package() { subd=$(echo "${arch}" | sed -e 's/x86_64/x64/' -e 's/i686/x32/') |