diff --git a/spacenavd/.SRCINFO b/spacenavd/.SRCINFO new file mode 100644 index 0000000..c5fc271 --- /dev/null +++ b/spacenavd/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = spacenavd + pkgdesc = The spacenav project provides a free, compatible alternative, to the proprietary 3Dconnexion device driver and SDK, for their 3D input devices (called 'space navigator', 'space pilot', 'space traveller', etc). + pkgver = 0.7.1 + pkgrel = 2 + url = http://spacenav.sourceforge.net/ + arch = x86_64 + license = GPL + makedepends = libx11 + provides = spacenavd + backup = etc/spnavrc + source = https://github.com/FreeSpacenav/spacenavd/releases/download/v0.7.1/spacenavd-0.7.1.tar.gz + source = spacenavd.service + sha256sums = 9266e19b847dabc79bac0f16984e6104338021f83c784780e2fb569c41529d2b + sha256sums = 5a1122cf44acdf34537bc2ef7c1ad3776872f335b2993d68833c23f999d96c11 + +pkgname = spacenavd + diff --git a/spacenavd/.gitignore b/spacenavd/.gitignore new file mode 100644 index 0000000..a6b8c85 --- /dev/null +++ b/spacenavd/.gitignore @@ -0,0 +1,5 @@ +*.tar.gz +*.tar.xz +*.tar.zst +pkg/ +src/ diff --git a/spacenavd/.gitrepo b/spacenavd/.gitrepo new file mode 100644 index 0000000..6798385 --- /dev/null +++ b/spacenavd/.gitrepo @@ -0,0 +1,12 @@ +; DO NOT EDIT (unless you know what you are doing) +; +; This subdirectory is a git "subrepo", and this file is maintained by the +; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme +; +[subrepo] + remote = https://aur.archlinux.org/spacenavd + branch = master + commit = e3226c71319b9808da6366c879d9f6c9c8663b2f + parent = 9eec14901d0c3dda2dc0705edb47dad0b7fbac6e + method = merge + cmdver = 0.4.1 diff --git a/spacenavd/PKGBUILD b/spacenavd/PKGBUILD new file mode 100644 index 0000000..47b38ce --- /dev/null +++ b/spacenavd/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Dan Campbell +# Contributor: Jesus Alvarez +# Creator: Jan Hambrecht + +pkgname=spacenavd +pkgver=0.7.1 +pkgrel=2 +pkgdesc="The spacenav project provides a free, compatible alternative, to the proprietary 3Dconnexion device driver and SDK, for their 3D input devices (called 'space navigator', 'space pilot', 'space traveller', etc)." +arch=('x86_64') +url="http://spacenav.sourceforge.net/" +license=('GPL') +makedepends=("libx11") +provides=('spacenavd') +backup=('etc/spnavrc') +source=(https://github.com/FreeSpacenav/spacenavd/releases/download/v$pkgver/spacenavd-$pkgver.tar.gz spacenavd.service) + +sha256sums=('9266e19b847dabc79bac0f16984e6104338021f83c784780e2fb569c41529d2b' + '5a1122cf44acdf34537bc2ef7c1ad3776872f335b2993d68833c23f999d96c11') + +build() { + cd ${pkgname}-${pkgver} + ./configure --prefix=/usr + make +} + +package() { + cd ${pkgname}-${pkgver} + make DESTDIR="${pkgdir}" install + install -D -m644 ${srcdir}/spacenavd.service ${pkgdir}/etc/systemd/system/spacenavd.service + install -D -m644 ${srcdir}/$pkgname-$pkgver/doc/example-spnavrc ${pkgdir}/etc/spnavrc +} diff --git a/spacenavd/spacenavd.service b/spacenavd/spacenavd.service new file mode 100644 index 0000000..b7d062c --- /dev/null +++ b/spacenavd/spacenavd.service @@ -0,0 +1,10 @@ +[Unit] +Description=Userspace Daemon of the spacenav driver. + +[Service] +Type=forking +PIDFile=/var/run/spnavd.pid +ExecStart=/usr/bin/spacenavd + +[Install] +WantedBy=multi-user.target