summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO18
-rw-r--r--60-bloody.rules26
-rw-r--r--PKGBUILD33
3 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a7393fbd95c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = a4tech-bloody-driver-git
+ pkgdesc = Linux driver for a4tech bloody mouse series.
+ pkgver = r16.ae33367
+ pkgrel = 1
+ url = https://github.com/maxmati/a4tech-bloody-linux-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 = 60-bloody.rules
+ md5sums = SKIP
+ md5sums = SKIP
+
+pkgname = a4tech-bloody-driver-git
+
diff --git a/60-bloody.rules b/60-bloody.rules
new file mode 100644
index 00000000000..f2db21a6d57
--- /dev/null
+++ b/60-bloody.rules
@@ -0,0 +1,26 @@
+# 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"
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..add6f5d597f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Arda Demir <ardadem.dev@gmail.com>
+pkgname=a4tech-bloody-driver-git
+_pkgname=a4tech-bloody-driver
+pkgver=r16.ae33367
+pkgrel=1
+pkgdesc='Linux driver for a4tech bloody mouse series.'
+arch=('any')
+url='https://github.com/maxmati/a4tech-bloody-linux-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
+ '60-bloody.rules')
+md5sums=('SKIP'
+ 'SKIP')
+
+build() {
+ cd "${srcdir}/${pkgname}"
+
+ cmake ./
+ make
+}
+
+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 -Dm644 "${srcdir}/60-bloody.rules" "${pkgdir}/usr/lib/udev/rules.d/"
+}