summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormostlyharmless2016-06-08 19:03:17 -0700
committermostlyharmless2016-06-08 19:03:17 -0700
commit43da18cc527286a18c840eeaad574e54fbd5e945 (patch)
tree20f30bd5a1cac0858ead67c47c741e232be9ba6a
downloadaur-43da18cc527286a18c840eeaad574e54fbd5e945.tar.gz
Initial commit HP RGS Receiver
-rw-r--r--.SRCINFO15
-rwxr-xr-xPKGBUILD60
2 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..20f374c40ae
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = hgsreceiver-bin
+ pkgdesc = HP remote RGS receiver
+ pkgver = 7.2.3
+ pkgrel = 1
+ url = https://h30670.www3.hp.com/portal/swdepot/displayProductInfo.do?productNumber=RGS-LR
+ arch = x86_64
+ license = custom:"HP"
+ depends = libudev.so.0
+ depends = lib32-glu
+ options = emptydirs
+ source = file://RGS_Linux_64_Receiver_v7.2.3_Z7550-01890.tar.gz
+ md5sums = f6b335e7ff929af51bfc7d840b56dd8d
+
+pkgname = hgsreceiver-bin
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100755
index 00000000000..b091fb5192a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,60 @@
+# Maintainer: mostlyharmless <mostlyharmlessgit@yahoo.com>
+# needs multilib, user must be on sudoers
+# Wacom tablet support enabled by default
+# Advance features cannot be registered or activated under KVM/QEMU/OVMF
+_wacomEnabled=yes
+pkgname=hgsreceiver-bin
+pkgver=7.2.3
+pkgrel=1
+pkgdesc="HP remote RGS receiver"
+arch=('x86_64')
+url="https://h30670.www3.hp.com/portal/swdepot/displayProductInfo.do?productNumber=RGS-LR"
+license=('custom:"HP"')
+depends=('libudev.so.0' 'lib32-glu')
+makedepends=('')
+options=('emptydirs')
+source=("file://RGS_Linux_64_Receiver_v7.2.3_Z7550-01890.tar.gz")
+md5sums=('f6b335e7ff929af51bfc7d840b56dd8d')
+
+prepare() {
+bsdtar xf lin64/receiver/*.rpm
+}
+
+package() {
+cd "${srcdir}"
+
+# install licence
+install -m644 -D lin64/receiver/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+# Security hole needed to register advance features
+# N.B. rgsmbiosreader does not work under KVM/QEMU/OVMF bios
+chmod 6755 opt/hpremote/rgreceiver/rgsmbiosreader
+chmod a+w etc/opt
+chmod a+w etc/opt/hpremote
+chmod a+w etc/opt/hpremote/*
+
+# link to libraries included with program
+install -d -m644 etc/ld.so.conf.d
+echo opt/hpremote/rgreceiver/lib64 > etc/ld.so.conf.d/hpremote.conf
+
+# Install WaCom tablet rules
+if [[ $_wacomEnabled != "no" ]]
+then
+ install -d -m644 etc/udev/rules.d
+ cp -u opt/hpremote/rgreceiver/rules/rgs-pen-tablet.rules etc/udev/rules.d/
+fi
+
+# copy the directories
+cp -rp ./opt/ $pkgdir
+cp -rp ./etc/ $pkgdir
+cp -rp ./usr/ $pkgdir
+cp -rp ./source/ $pkgdir
+
+}
+
+post-install() {
+
+/sbin/ldconfig
+
+}
+