summaryrefslogtreecommitdiff
path: root/community/inputattach/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/inputattach/PKGBUILD')
-rw-r--r--community/inputattach/PKGBUILD42
1 files changed, 27 insertions, 15 deletions
diff --git a/community/inputattach/PKGBUILD b/community/inputattach/PKGBUILD
index 54b3af023..0953d0a3a 100644
--- a/community/inputattach/PKGBUILD
+++ b/community/inputattach/PKGBUILD
@@ -2,30 +2,42 @@
pkgname=inputattach
pkgver=1.24
-pkgrel=2
+pkgrel=3
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=('glibc' 'bash')
+depends=('bash')
makedepends=('gcc')
-backup=(etc/conf.d/inputattach.conf)
+backup=(etc/conf.d/inputattach)
install=inputattach.install
source=('http://kernel.org/pub/linux/kernel/people/dtor/inputattach.c'
'http://kernel.org/pub/linux/kernel/people/dtor/serio-ids.h'
- 'inputattach.conf.d'
- 'inputattach.rc.d')
-md5sums=('eb595a766ca363edb3b14c25404596ce'
- '93d34d96cd3ad19ea1aeca7f68a66b4a'
- 'ca36071f8384314c037e1e8b15c63afe'
- 'd484778b0464e25b22cda89ac7fed156')
+ 'inputattach.conf.d' 'inputattach.rc.d'
+ '0001-Add-w8001-flag.patch' '0002-Allow-for-custom-baud-rates.patch')
+md5sums=('eb595a766ca363edb3b14c25404596ce' '93d34d96cd3ad19ea1aeca7f68a66b4a'
+ '7ca903e54829764c8241233af5069216' '8d62f8840a2e6457a953f667df39ef99'
+ 'f1b3ddae308351357f557cbd5c6cda81' '8f76908449cae24a95adbf0bc0a17721')
build() {
- cc $CFLAGS inputattach.c -o inputattach || return 1
+ cd "$srcdir"
- install -D -m755 inputattach $startdir/pkg/usr/sbin/inputattach && \
- install -D -m644 $startdir/src/inputattach.conf.d \
- $startdir/pkg/etc/conf.d/inputattach.conf && \
- install -D -m755 $startdir/src/inputattach.rc.d \
- $startdir/pkg/etc/rc.d/inputattach
+ # 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"
+
+ install -Dm755 inputattach \
+ "$pkgdir/usr/sbin/inputattach"
+
+ install -Dm644 $srcdir/inputattach.conf.d \
+ "$pkgdir/etc/conf.d/inputattach"
+
+ install -Dm755 $srcdir/inputattach.rc.d \
+ "$pkgdir/etc/rc.d/inputattach"
}