From 4985fdbcda51f1be9b80d54c0d3a1d77da6b209f Mon Sep 17 00:00:00 2001 From: Jasper Chan Date: Tue, 14 Jul 2020 20:19:41 -0700 Subject: [PATCH] libsigrok: update to 0.5.2. --- ...Add-udev-rule-file-for-dialout-group.patch | 48 +++++++++++++++++++ srcpkgs/libsigrok/template | 4 +- 2 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/libsigrok/patches/0001-Add-udev-rule-file-for-dialout-group.patch diff --git a/srcpkgs/libsigrok/patches/0001-Add-udev-rule-file-for-dialout-group.patch b/srcpkgs/libsigrok/patches/0001-Add-udev-rule-file-for-dialout-group.patch new file mode 100644 index 00000000000..c20d6373dde --- /dev/null +++ b/srcpkgs/libsigrok/patches/0001-Add-udev-rule-file-for-dialout-group.patch @@ -0,0 +1,48 @@ +From a5358ef3056554cf16d4064189016e9ffc1db6d8 Mon Sep 17 00:00:00 2001 +From: Jasper Chan +Date: Tue, 14 Jul 2020 20:14:11 -0700 +Subject: [PATCH] Add udev rule file for dialout group + +--- + contrib/61-libsigrok-dialout.rules | 29 +++++++++++++++++++++++++++++ + 1 file changed, 29 insertions(+) + create mode 100644 contrib/61-libsigrok-dialout.rules + +diff --git contrib/61-libsigrok-dialout.rules contrib/61-libsigrok-dialout.rules +new file mode 100644 +index 00000000..c6b2cbc0 +--- /dev/null ++++ contrib/61-libsigrok-dialout.rules +@@ -0,0 +1,29 @@ ++## ++## This file is part of the libsigrok project. ++## ++## Copyright (C) 2017 Stefan Bruens ++## ++## This program is free software; you can redistribute it and/or modify ++## it under the terms of the GNU General Public License as published by ++## the Free Software Foundation; either version 2 of the License, or ++## (at your option) any later version. ++## ++## This program is distributed in the hope that it will be useful, ++## but WITHOUT ANY WARRANTY; without even the implied warranty of ++## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++## GNU General Public License for more details. ++## ++## You should have received a copy of the GNU General Public License ++## along with this program; if not, see . ++## ++ ++# Grant access permissions to users who are in the "dialout" group. ++# ++# This file, when installed, must be installed with a name lexicographically ++# sorted later than the accompanied 60-libsigrok.rules ++ ++ACTION!="add|change", GOTO="libsigrok_rules_dialout_end" ++ ++ENV{ID_SIGROK}=="1", MODE="660", GROUP="dialout" ++ ++LABEL="libsigrok_rules_dialout_end" +-- +2.27.0 + diff --git a/srcpkgs/libsigrok/template b/srcpkgs/libsigrok/template index 87939ce82fa..4aeb2f03268 100644 --- a/srcpkgs/libsigrok/template +++ b/srcpkgs/libsigrok/template @@ -1,7 +1,7 @@ # Template file for 'libsigrok' pkgname=libsigrok version=0.5.2 -revision=1 +revision=2 build_style=gnu-configure hostmakedepends="pkg-config doxygen python3" makedepends="glib-devel libzip-devel glibmm-devel libserialport-devel @@ -19,7 +19,7 @@ esac post_install() { vinstall contrib/60-libsigrok.rules 0644 /usr/lib/udev/rules.d - vinstall contrib/61-libsigrok-uaccess.rules 0644 /usr/lib/udev/rules.d + vinstall contrib/61-libsigrok-dialout.rules 0644 /usr/lib/udev/rules.d } libsigrok-devel_package() {