git » flashprog.git » commit 861bf9c

upgpkg: 1.3.0-1

author Frederik Schwan
2024-04-20 10:10:16 UTC
committer Frederik Schwan
2024-04-20 10:10:16 UTC
parent 27d7751a4a2eec9223ee89669bc0368425452f95

upgpkg: 1.3.0-1

.SRCINFO +18 -0
PKGBUILD +20 -20

diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 0000000..d88c7d9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = flashrom
+	pkgdesc = Utility for reading, writing, erasing and verifying flash ROM chips
+	pkgver = 1.3.0
+	pkgrel = 1
+	url = https://www.flashrom.org/
+	arch = x86_64
+	license = GPL-2.0-or-later
+	makedepends = git
+	makedepends = meson
+	depends = cmocka
+	depends = libftdi
+	depends = libusb
+	depends = pciutils
+	optdepends = dmidecode: for SMBIOS/DMI table decoder support
+	source = git+https://github.com/flashrom/flashrom.git#tag=v1.3.0
+	sha256sums = bff6bc91e70e083d76d2554db56b59a09cdfc823a1d52b49bda76d378257e34c
+
+pkgname = flashrom
diff --git a/PKGBUILD b/PKGBUILD
index ae188ea..00fe07a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,34 +5,34 @@
 # Contributor: Anton Shestakov <engored*ya.ru>
 
 pkgname=flashrom
-pkgver=1.2
-pkgrel=4
+pkgver=1.3.0
+pkgrel=1
 pkgdesc="Utility for reading, writing, erasing and verifying flash ROM chips"
 arch=(x86_64)
 url="https://www.flashrom.org/"
-license=(GPL)
-depends=(libftdi pciutils libusb)
-makedepends=(meson)
+license=(GPL-2.0-or-later)
+depends=(
+  cmocka
+  libftdi
+  libusb
+  pciutils
+)
+makedepends=(
+  git
+  meson
+)
 optdepends=('dmidecode: for SMBIOS/DMI table decoder support')
-source=("https://download.flashrom.org/releases/${pkgname}-v${pkgver}.tar.bz2"{,.asc})
-sha256sums=('e1f8d95881f5a4365dfe58776ce821dfcee0f138f75d0f44f8a3cd032d9ea42b'
-            'SKIP')
-validpgpkeys=(58A4868B25C7CFD662FB0132A3EB95B8D9780F68) # David Hendricks (packaging key) <david.hendricks@gmail.com>
+source=(git+https://github.com/flashrom/flashrom.git#tag=v${pkgver})
+sha256sums=('bff6bc91e70e083d76d2554db56b59a09cdfc823a1d52b49bda76d378257e34c')
 
 build() {
-  cd ${pkgname}-v${pkgver}
-  arch-meson ../build
-  ninja -v -C ../build
-  # Workaround for meson not installing manpage
-  make
+  arch-meson ${pkgname} build
+  meson compile -C build
 }
 
 package() {
-  DESTDIR="${pkgdir}" ninja -C build install
-  # Workaround for meson not installing manpage
-  cd ${pkgname}-v${pkgver}
-  make PREFIX=temp/ install
-  cp -r temp/share "${pkgdir}"/usr/
+  meson install -C build --destdir "${pkgdir}"
 
-  install -Dm644 util/z60_flashrom.rules "${pkgdir}"/usr/lib/udev/rules.d/flashrom.rules
+  cd ${pkgname}
+  install -Dm644 util/flashrom_udev.rules "${pkgdir}"/usr/lib/udev/rules.d/flashrom.rules
 }