git » flashprog.git » commit d838278

fix udev rules using missing plugdev group

author Frederik Schwan
2024-04-20 18:10:26 UTC
committer Frederik Schwan
2024-04-20 18:10:26 UTC
parent 17ffdb82360de5750cad9fb4cded1aeb4bb5ed18

fix udev rules using missing plugdev group

.SRCINFO +1 -1
PKGBUILD +3 -2

diff --git a/.SRCINFO b/.SRCINFO
index 44ef707..4ca1b97 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = flashrom
 	pkgdesc = Utility for reading, writing, erasing and verifying flash ROM chips
 	pkgver = 1.3.0
-	pkgrel = 2
+	pkgrel = 3
 	url = https://www.flashrom.org/
 	arch = x86_64
 	license = GPL-2.0-or-later
diff --git a/PKGBUILD b/PKGBUILD
index b5767cc..a26c9c5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@
 
 pkgname=flashrom
 pkgver=1.3.0
-pkgrel=2
+pkgrel=3
 pkgdesc="Utility for reading, writing, erasing and verifying flash ROM chips"
 arch=(x86_64)
 url="https://www.flashrom.org/"
@@ -34,5 +34,6 @@ package() {
   meson install -C build --destdir "${pkgdir}"
 
   cd ${pkgname}
-  install -Dm644 util/flashrom_udev.rules "${pkgdir}"/usr/lib/udev/rules.d/flashrom.rules
+  sed -i 's#GROUP="plugdev"#TAG+="uaccess"#g' util/flashrom_udev.rules
+  install -Dm644 util/flashrom_udev.rules "${pkgdir}"/usr/lib/udev/rules.d/70-flashrom.rules
 }