summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 97a3f1f8bc70eb55f56b87661ab15a7be8ccf5c1 (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
25
26
27
28
29
30
# Maintainer: Nico Huber <nico.h@gmx.de>

pkgname="flashprog"
pkgdesc="Flashprog is a utility which can be used to detect, read, erase, or write BIOS chips (DIP, PLCC, SPI)."
pkgver=1.3
pkgrel=1
url="https://flashprog.org/"
license=('GPL')
source=(git+https://review.sourcearcade.org/flashprog.git?signed#tag=v${pkgver})
validpgpkeys=('2853079C9C66AB7E82C64966A5C163B7E557CAEB')
sha256sums=('SKIP')
depends=('pciutils' 'libusb' 'libftdi' 'libjaylink' 'libgpiod')
makedepends=('git' 'make' 'pkgconf')
optdepends=("dmidecode: for SMBIOS/DMI table decoder support")
arch=('riscv64' 'aarch64' 'armv6h' 'armv7h' 'i686' 'x86_64')

build() {
	cd "${srcdir}/${pkgname}"
	make
	make -C util/ich_descriptors_tool/
}

package() {
	cd "${srcdir}/${pkgname}"
	install -d "${pkgdir}/usr/bin"
	install -d "${pkgdir}/usr/man/man8"
	install -m 0755 flashprog "${pkgdir}/usr/bin/"
	install -m 0644 flashprog.8 "${pkgdir}/usr/man/man8/"
	install -m 0755 util/ich_descriptors_tool/ich_descriptors_tool "${pkgdir}/usr/bin/"
}