Hello,
Carrying on with previous issues on packaging flashrom or an alternative thereof
for flashing of flash chips (mostly used to free the BIOS on supported
computers, replacing it with something like GNUBoot), I have found that one of
the original developers of flashrom, Nico Huber, which had created the flashrom-
stable fork (that subsequently was abandoned because of Coreboot politics) which
we package in our repos has now properly created his own external fork.
Hence I propose we have this in our repos.

All the previous reasons outlined on this mailing list for flashrom-stable and
in issue #3493 still apply.
The only thing I have not included in this PKGBUILD is a 'replaces' clause, as
I'm not sure if that should be done or not in this case (and I leave that to the
distro maintainers' discretion).


-- 
Kind Regards,
Wael Karram.


From 06a3174bd91bf2e62c386325b4aacf3f6658b3c2 Mon Sep 17 00:00:00 2001
From: Wael Karram <w...@waelk.tech>
Date: Thu, 25 Jan 2024 23:13:46 +0200
Subject: [PATCH] Added flashprog, a utility for identification, reading,
 writing, verification and erasure of flash chips.

---
 pcr/flashprog/PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 pcr/flashprog/PKGBUILD

diff --git a/pcr/flashprog/PKGBUILD b/pcr/flashprog/PKGBUILD
new file mode 100644
index 000000000..a617d2695
--- /dev/null
+++ b/pcr/flashprog/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer (AUR): Nico Huber <nic...@gmx.de>
+# Maintainer (Parabola): Wael Karram <wael AT waelk.tech>
+
+# Parabola Changes and Rationale
+# 1) Clarified license version (GPLv2 only).
+# 2) Dropped unsupported architectures.
+
+pkgname="flashprog"
+pkgdesc="Flashprog is a utility which can be used to detect, read, erase, or write BIOS chips (DIP, PLCC, SPI)."
+pkgver=1.0
+pkgrel=1
+url="https://flashprog.org/";
+license=('GPLv2')
+source=(git+https://review.sourcearcade.org/flashprog.git?signed#tag=v${pkgver})
+validpgpkeys=('2853079C9C66AB7E82C64966A5C163B7E557CAEB')
+sha256sums=('SKIP')
+depends=('pciutils' 'libusb' 'libftdi' 'libjaylink') # libgpiod became incompatible with 2.0
+makedepends=('git' 'make')
+optdepends=("dmidecode: for SMBIOS/DMI table decoder support")
+arch=('armv7h' 'i686' 'x86_64')
+
+build() {
+	cd "${srcdir}/${pkgname}"
+	make CONFIG_LINUX_GPIO_SPI=no
+}
+
+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/"
+}
-- 
2.43.0

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Dev mailing list
Dev@lists.parabola.nu
https://lists.parabola.nu/mailman/listinfo/dev

Reply via email to