diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -1,24 +1,26 @@ # Maintainer: Shayne Hartford<shayneehartford@gmail.com> pkgname=nvflash -pkgver=5.728 +pkgver=5.792 pkgrel=1 pkgdesc="A tool to update the the firmware of Nvidia display adapters." url="https://www.techpowerup.com/download/nvidia-nvflash/" -arch=('x86_64' 'i686') +arch=('x86_64' 'i686' 'aarch64') license=('unknown') makedepends=('wget' 'unzip') build() { - wget \ + wget \ --method POST \ --header 'content-type: application/x-www-form-urlencoded' \ - --body-data 'id=2075&server_id=3' \ + --body-data 'id=2271&server_id=3' \ --output-document="${pkgname}-${pkgver}.zip" \ - "${url}" || true - - unzip "${pkgname}-${pkgver}.zip" + + unzip -o "${pkgname}-${pkgver}.zip" } package() { - install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}" + subd=$(echo "${arch}" | sed "s/x86_64/x64/") + subd=$(echo "${subd}" | sed "s/i686/x32/") + install -Dm755 "${srcdir}/${subd}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}" } |