summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6c1af928fa946e9c7ac69e47aef4dacc5042fd81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Maintainer: Shayne Hartford<shayneehartford@gmail.com>
pkgname=nvflash
pkgver=5.660.0
pkgrel=4
pkgdesc="A tool to update the the firmware of Nvidia display adapters."
url="https://www.techpowerup.com/download/nvidia-nvflash/"
arch=('x86_64' 'i686')
license=('unknown')
makedepends=('wget' 'unzip')

build() {
	wget \
  --method POST \
  --header 'content-type: application/x-www-form-urlencoded' \
  --body-data 'id=1707&server_id=3' \
  --output-document=${pkgname}-${pkgver}.zip \
  - https://www.techpowerup.com/download/nvidia-nvflash/ || true

	unzip ${pkgname}-${pkgver}.zip
}

package() {
	install -Dm755 ${pkgname} "${pkgdir}"/usr/bin/nvflash
}