summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorC0rn3j2020-01-15 14:22:40 +0100
committerC0rn3j2020-01-15 14:22:40 +0100
commit7f77a783de9f194fc47d0377779070ab2fd9a792 (patch)
treeb11fa29e455854d3a65804ef1f194817f4f6d390
parent55728e584454c1d24d73532e0fe660fb5c885030 (diff)
downloadaur-7f77a783de9f194fc47d0377779070ab2fd9a792.tar.gz
fix udev, switch to C0rn3j's fork, add gitignore
-rw-r--r--.SRCINFO11
-rw-r--r--.gitignore5
-rw-r--r--60-bloody.rules28
-rw-r--r--PKGBUILD17
4 files changed, 21 insertions, 40 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a7393fbd95c..ce4c5746c71 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,17 @@
pkgbase = a4tech-bloody-driver-git
pkgdesc = Linux driver for a4tech bloody mouse series.
- pkgver = r16.ae33367
+ pkgver = r17.15e03c75
pkgrel = 1
- url = https://github.com/maxmati/a4tech-bloody-linux-driver
+ url = https://gitlab.com/C0rn3j/a4tech_bloody_p85_driver
arch = any
license = unknown
makedepends = git
makedepends = cmake
provides = a4tech-bloody-driver
conflicts = a4tech-bloody-driver
- source = a4tech-bloody-driver-git::git+https://github.com/maxmati/a4tech-bloody-linux-driver
+ source = a4tech-bloody-driver-git::git+https://gitlab.com/C0rn3j/a4tech_bloody_p85_driver
source = 60-bloody.rules
- md5sums = SKIP
- md5sums = SKIP
+ sha256sums = SKIP
+ sha256sums = 2ee35d38f86e6f39eb0093d09f75030e478146bc0a56bbdbb45822c77c0e9d18
pkgname = a4tech-bloody-driver-git
-
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..74851bc7bd6
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+*
+!.SRCINFO
+!PKGBUILD
+!.gitignore
+!60-bloody.rules
diff --git a/60-bloody.rules b/60-bloody.rules
index f2db21a6d57..e6f30ca8af5 100644
--- a/60-bloody.rules
+++ b/60-bloody.rules
@@ -1,26 +1,2 @@
-# Bloody A9
-SUBSYSTEM=="usb", ATTRS{idVendor}=="09da", ATTRS{idProduct}=="1003", MODE="0666"
-
-# Bloody AL9
-SUBSYSTEM=="usb", ATTRS{idVendor}=="09da", ATTRS{idProduct}=="f633", MODE="0666"
-
-# Bloody R3
-SUBSYSTEM=="usb", ATTRS{idVendor}=="09da", ATTRS{idProduct}=="1a5a", MODE="0666"
-
-# Bloody R7
-SUBSYSTEM=="usb", ATTRS{idVendor}=="09da", ATTRS{idProduct}=="1485", MODE="0666"
-
-# Bloody R8_1
-SUBSYSTEM=="usb", ATTRS{idVendor}=="09da", ATTRS{idProduct}=="14ee", MODE="0666"
-
-# Bloody V5
-SUBSYSTEM=="usb", ATTRS{idVendor}=="09da", ATTRS{idProduct}=="172a", MODE="0666"
-
-# Bloody V7
-SUBSYSTEM=="usb", ATTRS{idVendor}=="09da", ATTRS{idProduct}=="f613", MODE="0666"
-
-# Bloody R70
-SUBSYSTEM=="usb", ATTRS{idVendor}=="09da", ATTRS{idProduct}=="f643", MODE="0666"
-
-# Bloody V8
-SUBSYSTEM=="usb", ATTRS{idVendor}=="09da", ATTRS{idProduct}=="11f5", MODE="0666"
+# Bloody mice get random PID assigned upon first connect to the proprietary software, so we cover the entire vendor range
+SUBSYSTEM=="usb", ATTRS{idVendor}=="09da", MODE="0666"
diff --git a/PKGBUILD b/PKGBUILD
index add6f5d597f..dad8ffa9059 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,19 +1,20 @@
-# Maintainer: Arda Demir <ardadem.dev@gmail.com>
+# Maintainer: Martin Rys <rys.pw/#contact_me>
+# Previous maintainer: Arda Demir <ardadem.dev@gmail.com>
pkgname=a4tech-bloody-driver-git
_pkgname=a4tech-bloody-driver
-pkgver=r16.ae33367
+pkgver=r17.15e03c75
pkgrel=1
pkgdesc='Linux driver for a4tech bloody mouse series.'
arch=('any')
-url='https://github.com/maxmati/a4tech-bloody-linux-driver'
+url='https://gitlab.com/C0rn3j/a4tech_bloody_p85_driver'
license=('unknown')
makedepends=('git' 'cmake')
provides=('a4tech-bloody-driver')
conflicts=('a4tech-bloody-driver')
-source=($pkgname::git+https://github.com/maxmati/a4tech-bloody-linux-driver
+source=($pkgname::git+https://gitlab.com/C0rn3j/a4tech_bloody_p85_driver
'60-bloody.rules')
-md5sums=('SKIP'
- 'SKIP')
+sha256sums=('SKIP'
+ '2ee35d38f86e6f39eb0093d09f75030e478146bc0a56bbdbb45822c77c0e9d18')
build() {
cd "${srcdir}/${pkgname}"
@@ -26,8 +27,8 @@ package() {
mkdir -p "${pkgdir}/usr/bin/"
mkdir -p "${pkgdir}/usr/lib/udev/rules.d/"
- install -Dm755 "${srcdir}/${pkgname}/bloody" "${pkgdir}/usr/bin/"
- chmod +x "${pkgdir}/usr/bin/bloody"
+ install -Dm755 "${srcdir}/${pkgname}/bloody-cli" "${pkgdir}/usr/bin/"
+ chmod +x "${pkgdir}/usr/bin/bloody-cli"
install -Dm644 "${srcdir}/60-bloody.rules" "${pkgdir}/usr/lib/udev/rules.d/"
}