1 # $Id: PKGBUILD 93079 2010-10-03 11:44:08Z ibiru $
2 # Contributor: Chris Brannon <chris@the-brannons.com>
3 # Contributor: Jan de Groot <jgc@archlinux.org>
4 # Contributor: Giovanni Scafora <giovanni@archlinux.org>
9 pkgdesc="Braille display driver for Linux/Unix"
10 arch=('i686' 'x86_64')
11 url="http://mielke.cc/brltty"
12 license=('GPL' 'LGPL')
16 backup=(etc/brltty.conf etc/conf.d/brltty.conf)
17 options=('!makeflags' '!emptydirs')
18 source=(http://mielke.cc/brltty/releases/brltty-${pkgver}.tar.gz
19 brltty-4.2-S_ISCHR.patch
22 md5sums=('192af5e634210616928496645e392097'
23 '5954b289efaf2ff17676d06de9a88854'
24 '831ebaf0c56091702929c68805d20c4f'
25 'a8ab8b3dd059e96e1734bc9cdcf844fc')
28 cd "${srcdir}/brltty-${pkgver}"
29 CFLAGS+="${CFLAGS} -D_GNU_SOURCE" \
30 ./configure --prefix=/usr \
32 --mandir=/usr/share/man \
33 --localstatedir=/var \
35 --disable-speech-support \
36 --disable-java-bindings \
37 --disable-python-bindings \
38 --disable-tcl-bindings \
39 --disable-caml-bindings \
40 --with-screen-driver=-a2
42 patch -Np1 -i ${srcdir}/brltty-4.2-S_ISCHR.patch
47 cd "${srcdir}/brltty-${pkgver}"
48 make INSTALL_ROOT="${pkgdir}" install
49 install -D -m 755 ${srcdir}/brltty ${pkgdir}/etc/rc.d/brltty
50 install -D -m 644 ${srcdir}/brltty.conf ${pkgdir}/etc/conf.d/brltty.conf
51 install -D -m 644 Documents/brltty.conf ${pkgdir}/etc/brltty.conf