summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorArda2018-04-08 20:57:27 +0300
committerArda2018-04-08 20:57:27 +0300
commit55728e584454c1d24d73532e0fe660fb5c885030 (patch)
tree9f021f64fba02af6520c51016b31cc368302e770 /PKGBUILD
downloadaur-55728e584454c1d24d73532e0fe660fb5c885030.tar.gz
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 33 insertions, 0 deletions
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/"
+}