summaryrefslogtreecommitdiff
path: root/pcr/spacenav-daemon
diff options
context:
space:
mode:
authorMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-06-20 01:42:32 -0300
committerMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-06-20 01:42:32 -0300
commit512ae4fcdba9586fcc92f8f06828ebc0f3144e08 (patch)
treebdbe2dbca71b5a4a43d96874b557872bee79e530 /pcr/spacenav-daemon
parent8461f52e10f38b71f001ec6d9db791b2731b0599 (diff)
spacenav-daemon: package renamed and removing rc.d service
Diffstat (limited to 'pcr/spacenav-daemon')
-rw-r--r--pcr/spacenav-daemon/PKGBUILD44
-rw-r--r--pcr/spacenav-daemon/spacenav.service10
-rw-r--r--pcr/spacenav-daemon/spnavrc8
3 files changed, 62 insertions, 0 deletions
diff --git a/pcr/spacenav-daemon/PKGBUILD b/pcr/spacenav-daemon/PKGBUILD
new file mode 100644
index 000000000..0f06af418
--- /dev/null
+++ b/pcr/spacenav-daemon/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com>
+
+pkgname=spacenav-daemon
+_pkgname=${pkgname%-daemon}
+pkgver=0.5
+pkgrel=3
+pkgdesc="Free Spacenav Daemon is a free alternative to the 3Dconnexion device driver, for their 3D input devices."
+arch=(
+ i686
+ x86_64
+ mips64el
+)
+conflicts=${_pkgname}d
+replaces=${_pkgname}d
+url=http://$_pkgname.sourceforge.net/
+license=GPL2
+depends=libx11
+backup=etc/spnavrc
+source=(
+ http://downloads.sourceforge.net/$_pkgname/${_pkgname}d-$pkgver.tar.gz
+ $_pkgname.service
+ spnavrc
+)
+sha512sums=(
+ 908f598e4ba5febbc1191cc32cd444817acd40c22e79b1f139c50787e1e25d4cd8328dc3fd6d9dde09bb80232b52f0e75ae429fb3345eb51fbe5a47577b038e2
+ 61397646f7dda23b2cef5168f23e21c017801f156374c7fab7bae650cd3cee0ea173d3cb65ae2f0be580aa399999a388df2d804b9d00c01db430c820dbc60160
+ f97866a77fe9e6bee8df046ad62576a1cdbba26323218cd6336de66e0898f403bb33da12666fe75f00bb9bf078f895e8e7de360196079f83082fc94a23f71728
+)
+
+build() {
+ cd $srcdir/${_pkgname}d-$pkgver
+ ./configure --prefix=$pkgdir/usr
+ make
+}
+
+package() {
+ cd $srcdir/${_pkgname}d-$pkgver
+ make DESTDIR=$pkgdir install
+
+ install -Dm644 $srcdir/$_pkgname.service $pkgdir/usr/lib/systemd/system/$_pkgname.service
+ install -Dm644 $srcdir/spnavrc $pkgdir/etc/spnavrc
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/pcr/spacenav-daemon/spacenav.service b/pcr/spacenav-daemon/spacenav.service
new file mode 100644
index 000000000..30e8019e9
--- /dev/null
+++ b/pcr/spacenav-daemon/spacenav.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Spacenavigator Daemon Service
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/spacenavd
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/pcr/spacenav-daemon/spnavrc b/pcr/spacenav-daemon/spnavrc
new file mode 100644
index 000000000..7d19ae03b
--- /dev/null
+++ b/pcr/spacenav-daemon/spnavrc
@@ -0,0 +1,8 @@
+# sensitivity is multiplied with every motion (1.0 normal).
+sensitivity = 1.000
+
+# dead zone; any motion less than this number, is discarded as noise.
+dead-zone = 2
+
+# disable led
+led = 0