testing/linuxconsoletools: new aport

Tools for connecting joysticks & legacy devices to the kernels input subsystem
http://sourceforge.net/projects/linuxconsole/

fixes #2532
This commit is contained in:
Natanael Copa 2013-12-30 10:29:38 +00:00
parent 665cf7860a
commit bbcd8c0265
2 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,44 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=linuxconsoletools
pkgver=1.4.6
pkgrel=0
pkgdesc="Tools for connecting joysticks & legacy devices to the kernels input subsystem"
url="http://sourceforge.net/projects/linuxconsole/"
arch="all"
license="GPLv2+"
depends=""
depends_dev="sdl-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/linuxconsole/linuxconsoletools-$pkgver.tar.bz2
sys-time.patch"
_builddir="$srcdir"/linuxconsoletools-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
make PREFIX=/usr || return 1
}
package() {
cd "$_builddir"
make PREFIX=/usr DESTDIR="$pkgdir" install || return 1
rm -f "$pkgdir"/usr/lib/*.la
}
md5sums="9115e08e3a2193b62da46d0e02852787 linuxconsoletools-1.4.6.tar.bz2
e51dda85eea08232d8013781e7756d2d sys-time.patch"
sha256sums="8ef1419e1a3dc31cd63cab969ef7e9c58060703fe6b755312f3a36b924f46500 linuxconsoletools-1.4.6.tar.bz2
295925633ceb5e8aa3033b3b4b04276e4cdca6646c1c52bf5cee09ec8f1aa9ce sys-time.patch"
sha512sums="1597e3debcf45f7648cc0e4e042e08fde8aa2dcde74e1cf073d7450328f52c6b074123da9f6b7094598758d8f9b7db53f9ce952cbf4fae3454755b90ff286f28 linuxconsoletools-1.4.6.tar.bz2
a96b37a365a5fb067d017b3790f4e09fd733639a5e65f93d44138e89efbcedc87b11a35f39f40623cdac743207349fbb28d4de982d5694a6f9b8981bce29dd68 sys-time.patch"

View File

@ -0,0 +1,12 @@
diff --git a/utils/inputattach.c b/utils/inputattach.c
index d11e2db..22e1ec3 100644
--- a/utils/inputattach.c
+++ b/utils/inputattach.c
@@ -41,6 +41,7 @@
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
+#include <sys/time.h>
#include <termios.h>
#include <unistd.h>