summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Coenen2016-07-05 13:01:33 +0200
committerManuel Coenen2016-07-05 13:01:33 +0200
commit37ee6e8878f9b6a976d1951f4e10f1e96b3885be (patch)
tree4e33b07a79e1456d1d9bb437d73bc8a7643d292e
parent2cf6995a17534fd338878d8df5139f0027c60ef7 (diff)
downloadaur-37ee6e8878f9b6a976d1951f4e10f1e96b3885be.tar.gz
Use udev rules now provided by upstream
-rw-r--r--.SRCINFO4
-rw-r--r--90-c2_bus.rules2
-rw-r--r--PKGBUILD9
3 files changed, 5 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 29d5fc53c87..ba57cd0c696 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = c2_gpio-dkms-git
pkgdesc = Linux GPIO C2 Bus Master Implementation
- pkgver = r48.2d5f58f
+ pkgver = r62.2bc8b52
pkgrel = 1
url = https://github.com/dimhoff/si4010prog
install = c2_gpio-dkms-git.install
@@ -14,10 +14,8 @@ pkgbase = c2_gpio-dkms-git
conflicts = c2_gpio
source = c2_gpio-dkms-git::git+git://github.com/dimhoff/si4010prog.git
source = dkms.conf
- source = 90-c2_bus.rules
md5sums = SKIP
md5sums = 76a06cf15c98143494aefa819533f959
- md5sums = 4299721bd42e71c877dc0816f60c5ea1
pkgname = c2_gpio-dkms-git
diff --git a/90-c2_bus.rules b/90-c2_bus.rules
deleted file mode 100644
index edc0774d9c7..00000000000
--- a/90-c2_bus.rules
+++ /dev/null
@@ -1,2 +0,0 @@
-KERNEL=="c2_gpio", SUBSYSTEM=="module", ACTION=="add", PROGRAM="/usr/bin/grep c2_gpio /proc/devices", RUN+="/usr/bin/bash -c '/usr/bin/mknod /dev/c2_bus c %c{1} 0 && /usr/bin/chmod 777 /dev/c2_bus'"
-KERNEL=="c2_gpio", SUBSYSTEM=="module", ACTION=="remove", RUN+="/usr/bin/rm /dev/c2_bus"
diff --git a/PKGBUILD b/PKGBUILD
index fd695d88bd3..fa37a83a861 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Manuel Coenen <manuel dot coenen at gmail dot com>
_pkgbase=c2_gpio
pkgname=c2_gpio-dkms-git
-pkgver=r48.2d5f58f
+pkgver=r62.2bc8b52
pkgrel=1
pkgdesc="Linux GPIO C2 Bus Master Implementation"
arch=('any')
@@ -16,11 +16,9 @@ conflicts=("${_pkgbase}")
install=${pkgname}.install
source=("${pkgname}::git+git://github.com/dimhoff/si4010prog.git"
'dkms.conf'
-'90-c2_bus.rules'
)
md5sums=('SKIP'
- '76a06cf15c98143494aefa819533f959'
- '4299721bd42e71c877dc0816f60c5ea1')
+ '76a06cf15c98143494aefa819533f959')
pkgver() {
cd "$srcdir/${pkgname}"
@@ -36,7 +34,6 @@ package() {
# Copy dkms.conf
install -Dm644 dkms.conf "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf
- install -Dm644 90-c2_bus.rules "${pkgdir}"/usr/lib/udev/rules.d/90-c2_bus.rules
# Set name and version
sed -e "s/@_PKGBASE@/${_pkgbase}/" \
@@ -46,4 +43,6 @@ package() {
# Copy sources (including Makefile)
cd "$srcdir/${pkgname}/drivers/c2_gpio"
cp -r * "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/
+
+ install -Dm644 99-c2_bus.rules "${pkgdir}"/usr/lib/udev/rules.d/99-c2_bus.rules
}