summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorClayton G. Hobbs2018-01-28 20:56:18 -0500
committerClayton G. Hobbs2018-01-28 20:56:18 -0500
commitb5ed8539ccd23b952a492cc2d2f3ebc48b8e5ac2 (patch)
treed083f6373058228d73a6cceb61c926e463541e02
downloadaur-b5ed8539ccd23b952a492cc2d2f3ebc48b8e5ac2.tar.gz
Created package for ibm_capsense_usb_util-0.9.0
No longer will I have to scrounge around to find the utility, get it to build, and run it as root to avoid having to mess with permissions. You're welcome, half-dozen other Arch users who use old IBM keyboards with xwhatsit controllers.
-rw-r--r--.SRCINFO18
-rw-r--r--82-ibm-capsense-usb.rules1
-rw-r--r--PKGBUILD45
-rw-r--r--ibm_capsense_usb_util-0.9.0.patch11
4 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c88a8fd4799
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = ibm_capsense_usb_util
+ pkgdesc = Graphical utility for configuring xwhatsit capsense keyboard controllers
+ pkgver = 0.9.0
+ pkgrel = 1
+ url = http://downloads.cornall.co/ibm-capsense-usb-web/ibm-capsense-usb.html
+ arch = x86_64
+ license = GPL3
+ depends = qt5-base
+ depends = hidapi
+ source = http://downloads.cornall.co/ibm-capsense-usb/0.9.0/ibm-capsense-usb_0.9.0.tar.gz
+ source = 82-ibm-capsense-usb.rules
+ source = ibm_capsense_usb_util-0.9.0.patch
+ sha512sums = e19070c22437096e05310f474666000d6f61eea09242133b30d474000e00d8a4c7d0178f63f2d8b979f8971461e15384c80c676db811652d8363ea8c335d6bc8
+ sha512sums = d8062f4734ded9aa05d843b14d2a4305715c00cac82b2e168bd7ac4c4641ca7fa9d2fd953700fcbe194563ef8e026a5d1c4519b92f267187260f72ccb9f09820
+ sha512sums = af1de637c32dd7c3577e3f92f5e1209c80d4f71a774ceb0f79eff0918c97703f879241e2a8619ab1fb5ec28d69e7bb9218022ce51dbcf32547fc583a48d76560
+
+pkgname = ibm_capsense_usb_util
+
diff --git a/82-ibm-capsense-usb.rules b/82-ibm-capsense-usb.rules
new file mode 100644
index 00000000000..4a4d4d0ef9b
--- /dev/null
+++ b/82-ibm-capsense-usb.rules
@@ -0,0 +1 @@
+SUBSYSTEM=="usb", ATTR{idVendor}=="0481", ATTR{idProduct}=="0002", MODE="660", GROUP="plugdev"
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f3423a900a5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Clay Hobbs <clay@lakeserv.net>
+pkgname=ibm_capsense_usb_util
+pkgver=0.9.0
+pkgrel=1
+pkgdesc="Graphical utility for configuring xwhatsit capsense keyboard controllers"
+arch=('x86_64')
+url="http://downloads.cornall.co/ibm-capsense-usb-web/ibm-capsense-usb.html"
+license=('GPL3')
+groups=()
+depends=('qt5-base' 'hidapi')
+makedepends=()
+checkdepends=()
+optdepends=()
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+install=
+changelog=
+source=("http://downloads.cornall.co/ibm-capsense-usb/${pkgver}/ibm-capsense-usb_${pkgver}.tar.gz"
+ "82-ibm-capsense-usb.rules"
+ "$pkgname-$pkgver.patch")
+noextract=()
+sha512sums=("e19070c22437096e05310f474666000d6f61eea09242133b30d474000e00d8a4c7d0178f63f2d8b979f8971461e15384c80c676db811652d8363ea8c335d6bc8"
+ "d8062f4734ded9aa05d843b14d2a4305715c00cac82b2e168bd7ac4c4641ca7fa9d2fd953700fcbe194563ef8e026a5d1c4519b92f267187260f72ccb9f09820"
+ "af1de637c32dd7c3577e3f92f5e1209c80d4f71a774ceb0f79eff0918c97703f879241e2a8619ab1fb5ec28d69e7bb9218022ce51dbcf32547fc583a48d76560")
+
+prepare() {
+ cd "ibm-capsense-usb_$pkgver"
+ patch -p1 -i "$srcdir/$pkgname-$pkgver.patch"
+}
+
+build() {
+ cd "ibm-capsense-usb_$pkgver/src/util"
+ qmake
+ make
+}
+
+package() {
+ cd "ibm-capsense-usb_$pkgver"
+ install -m 755 -p -D "src/util/src/$pkgname" "$pkgdir/usr/bin/$pkgname"
+ cd "$srcdir"
+ install -m 644 -p -D "82-ibm-capsense-usb.rules" "$pkgdir/usr/lib/udev/rules.d/82-ibm-capsense-usb.rules"
+}
diff --git a/ibm_capsense_usb_util-0.9.0.patch b/ibm_capsense_usb_util-0.9.0.patch
new file mode 100644
index 00000000000..0bb09c62375
--- /dev/null
+++ b/ibm_capsense_usb_util-0.9.0.patch
@@ -0,0 +1,11 @@
+diff -ura ibm-capsense-usb_0.9.0/src/util/ibm-capsense-usb-util.pro ibm-capsense-usb_0.9.0-new/src/util/ibm-capsense-usb-util.pro
+--- ibm-capsense-usb_0.9.0/src/util/ibm-capsense-usb-util.pro 2014-10-18 06:18:22.000000000 -0400
++++ ibm-capsense-usb_0.9.0-new/src/util/ibm-capsense-usb-util.pro 2018-01-28 20:36:35.636186248 -0500
+@@ -25,7 +25,6 @@
+ unix:!macx {
+ LIBS += -lhidapi-libusb
+ INCLUDEPATH += \
+- /usr/include \
+ /usr/include/hidapi
+ CONFIG += debug silent
+ }