diff options
author | Benjamin Bergman | 2020-03-31 21:38:34 -0500 |
---|---|---|
committer | Benjamin Bergman | 2020-03-31 21:38:34 -0500 |
commit | 7945edb8e4d188454c6c1c27b9179c16d9f7168a (patch) | |
tree | 8573937559cb6a2c26e4b9195b121fd1b0df5d7d | |
download | aur-7945edb8e4d188454c6c1c27b9179c16d9f7168a.tar.gz |
Initial release of spacenav-plus AUR package
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 30 | ||||
-rw-r--r-- | spacenavd.service | 10 |
3 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3eed4c6b22c5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = spacenav-plus + pkgdesc = spacenav plus is a fork of an old version of spacenavd that adds support for some old serial 3D mice such as the SpaceBall 5000 + pkgver = 0.5 + pkgrel = 1 + url = https://github.com/BenBergman/spacenav-plus + arch = x86_64 + license = GPL + optdepends = libx11 + provides = spacenavd + backup = etc/spnavrc + source = https://github.com/BenBergman/spacenav-plus/archive/v0.5.tar.gz + source = spacenavd.service + sha256sums = 0979db4e60d7a59b6fb1f396f540d1222ba65ce5b78ef8489e17faf70c9d3a66 + sha256sums = 5a1122cf44acdf34537bc2ef7c1ad3776872f335b2993d68833c23f999d96c11 + +pkgname = spacenav-plus + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..45802fc2b1c2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Ben Bergman <ben at benbergman dot ca> + +pkgname=spacenav-plus +pkgver=0.5 +pkgrel=1 +pkgdesc="spacenav plus is a fork of an old version of spacenavd that adds support for some old serial 3D mice such as the SpaceBall 5000" +arch=('x86_64') +url="https://github.com/BenBergman/spacenav-plus" +license=('GPL') +optdepends=("libx11") +provides=('spacenavd') +backup=('etc/spnavrc') +source=(https://github.com/BenBergman/spacenav-plus/archive/v$pkgver.tar.gz spacenavd.service) + +sha256sums=('0979db4e60d7a59b6fb1f396f540d1222ba65ce5b78ef8489e17faf70c9d3a66' + '5a1122cf44acdf34537bc2ef7c1ad3776872f335b2993d68833c23f999d96c11') + +build() { + cd ${pkgname}-${pkgver}/trunk/spacenavd + ./configure --prefix=/usr + make || return 1 +} + +package() { + cd ${pkgname}-${pkgver}/trunk/spacenavd + #mkdir -p "${pkgdir}"/bin/ + make DESTDIR="${pkgdir}" install || return 1 + install -D -m644 ${srcdir}/spacenavd.service ${pkgdir}/etc/systemd/system/spacenavd.service || return 1 + install -D -m644 ${srcdir}/$pkgname-$pkgver/trunk/spacenavd/doc/example-spnavrc ${pkgdir}/etc/spnavrc || return 1 +} diff --git a/spacenavd.service b/spacenavd.service new file mode 100644 index 000000000000..b7d062c3e9b3 --- /dev/null +++ b/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 |