summaryrefslogtreecommitdiff
path: root/extra/brltty/PKGBUILD
blob: 3581508c684a2cc4456306d2ccf5d1f9b2271088 (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 102193 2010-12-06 16:20:30Z andrea $
# Contributor: Jan de Groot <jgc@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>

pkgname=brltty
pkgver=4.2
pkgrel=3
pkgdesc="Braille display driver for Linux/Unix"
arch=('i686' 'x86_64' 'mips64el')
url="http://mielke.cc/brltty"
license=('GPL' 'LGPL')
depends=('libxaw' 'at-spi' 'gpm' 'icu' 'python2' 'tcl' 'atk' 'libxtst')
makedepends=('pyrex' 'bluez')
optdepends=('bluez: bluetooth support')
backup=(etc/brltty.conf etc/conf.d/brltty.conf)
options=('!makeflags' '!emptydirs')
source=(http://mielke.cc/${pkgname}/releases/${pkgname}-${pkgver}.tar.gz
        'brltty-4.2-S_ISCHR.patch'
        'brltty'
        'brltty.conf')
md5sums=('192af5e634210616928496645e392097'
         '5954b289efaf2ff17676d06de9a88854'
         '831ebaf0c56091702929c68805d20c4f'
         'a8ab8b3dd059e96e1734bc9cdcf844fc')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  CFLAGS+="${CFLAGS} -D_GNU_SOURCE" \
  ./configure --prefix=/usr \
    --sysconfdir=/etc \
    --mandir=/usr/share/man \
    --localstatedir=/var \
    --enable-gpm \
    --disable-java-bindings \
    --disable-caml-bindings \
    PYTHON=/usr/bin/python2

  patch -Np1 -i ${srcdir}/brltty-4.2-S_ISCHR.patch
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make INSTALL_ROOT="${pkgdir}" install
  install -D -m755 ${srcdir}/brltty ${pkgdir}/etc/rc.d/brltty
  install -D -m644 ${srcdir}/brltty.conf ${pkgdir}/etc/conf.d/brltty.conf
  install -D -m644 Documents/brltty.conf ${pkgdir}/etc/brltty.conf
}