summaryrefslogtreecommitdiff
path: root/community/inputattach/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/inputattach/PKGBUILD')
-rw-r--r--community/inputattach/PKGBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/community/inputattach/PKGBUILD b/community/inputattach/PKGBUILD
new file mode 100644
index 000000000..bda613cf0
--- /dev/null
+++ b/community/inputattach/PKGBUILD
@@ -0,0 +1,50 @@
+# $Id: PKGBUILD 91882 2013-05-28 18:09:11Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Mark Smith <markzzzsmith@yahoo.com.au>
+
+pkgname=inputattach
+pkgver=1.24
+pkgrel=10
+pkgdesc="Attach serial mice, keyboards and other input devices to the kernel input system"
+arch=('i686' 'x86_64')
+url="http://linuxconsole.sourceforge.net/"
+license=('GPL')
+depends=('bash')
+makedepends=('gcc')
+backup=(etc/conf.d/inputattach)
+source=('http://arch.p5n.pp.ru/~sergej/dl/2011/inputattach.c'
+ 'http://arch.p5n.pp.ru/~sergej/dl/2011/serio-ids.h'
+ 'inputattach.conf.d'
+ 'inputattach.service'
+ 'inputattachctl'
+ '0001-Add-w8001-flag.patch'
+ '0002-Allow-for-custom-baud-rates.patch')
+md5sums=('eb595a766ca363edb3b14c25404596ce'
+ '93d34d96cd3ad19ea1aeca7f68a66b4a'
+ '7ca903e54829764c8241233af5069216'
+ 'c19b9ed38b243191cf5378b87a42a4cc'
+ '7dd0690a9d2fe5e1052900650906e273'
+ 'f1b3ddae308351357f557cbd5c6cda81'
+ '8f76908449cae24a95adbf0bc0a17721')
+
+build() {
+ cd "$srcdir"
+
+ mkdir src
+ cp inputattach.c serio-ids.h src/
+ cd src
+
+ # Add support for serial wacom tablets
+ patch -Np1 -i "$srcdir/0001-Add-w8001-flag.patch"
+ patch -Np1 -i "$srcdir/0002-Allow-for-custom-baud-rates.patch"
+
+ cc $CFLAGS inputattach.c -o inputattach
+}
+
+package() {
+ cd "$srcdir/src"
+ install -Dm755 inputattach "$pkgdir/usr/bin/inputattach"
+ install -Dm755 $srcdir/inputattachctl $pkgdir/usr/bin/inputattachctl
+ install -Dm644 $srcdir/inputattach.conf.d "$pkgdir/etc/conf.d/inputattach"
+ install -Dm644 $srcdir/inputattach.service $pkgdir/usr/lib/systemd/system/inputattach.service
+}