updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / brltty-minimal / PKGBUILD
blobb1cf2993f60d5e722dec9489a81a97d4ea5c8ac1
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>
6 pkgname=brltty-minimal
7 pkgver=4.2
8 pkgrel=3
9 pkgdesc="Braille display driver for Linux/Unix"
10 arch=('i686' 'x86_64')
11 url="http://mielke.cc/brltty"
12 license=('GPL' 'LGPL')
13 depends=(bash icu)
14 conflicts=('brltty')
15 provides=('brltty')
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
20         brltty
21         brltty.conf)
22 md5sums=('192af5e634210616928496645e392097'
23          '5954b289efaf2ff17676d06de9a88854'
24          '831ebaf0c56091702929c68805d20c4f'
25          'a8ab8b3dd059e96e1734bc9cdcf844fc')
27 build() {
28   cd "${srcdir}/brltty-${pkgver}"
29   CFLAGS+="${CFLAGS} -D_GNU_SOURCE" \
30   ./configure --prefix=/usr \
31               --sysconfdir=/etc \
32               --mandir=/usr/share/man \
33               --localstatedir=/var \
34               --disable-gpm \
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
43   make || return 1
46 package() {
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