summaryrefslogtreecommitdiff
path: root/community/inputattach/PKGBUILD
blob: 0e6211808cae9cb00a5f08354425f58858008b1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# $Id: PKGBUILD 48320 2011-05-31 10:23:41Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Mark Smith <markzzzsmith@yahoo.com.au>

pkgname=inputattach
pkgver=1.24
pkgrel=4
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)
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'
        '0001-Add-w8001-flag.patch' '0002-Allow-for-custom-baud-rates.patch')
md5sums=('eb595a766ca363edb3b14c25404596ce'
         '93d34d96cd3ad19ea1aeca7f68a66b4a'
         '7ca903e54829764c8241233af5069216'
         'aa2e404fc113abdd2ab14e2a6352c331'
         'f1b3ddae308351357f557cbd5c6cda81'
         '8f76908449cae24a95adbf0bc0a17721')

build() {
  cd "$srcdir"

  # 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"
}