summaryrefslogtreecommitdiff
path: root/extra/brltty/PKGBUILD
blob: 1405c33f074cc10758218b8fc6b5a48427cdd34b (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
49
# $Id: PKGBUILD 180801 2013-03-26 11:49:28Z foutrelis $
# Maintainer:
# Contributor: Jan de Groot <jgc@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>

pkgname=brltty
pkgver=4.4
pkgrel=4
pkgdesc="Braille display driver for Linux/Unix"
arch=('i686' 'x86_64')
url="http://mielke.cc/brltty"
license=('GPL' 'LGPL')
depends=('libxaw' 'at-spi2-core' 'gpm' 'icu>=51.1' 'tcl' 'atk' 'pyrex')
makedepends=('bluez')
optdepends=('bluez: bluetooth support')
backup=(etc/brltty.conf etc/conf.d/brltty.conf)
options=('!makeflags' '!emptydirs')
install=brltty.install
source=(http://mielke.cc/$pkgname/releases/$pkgname-$pkgver.tar.gz
        'brltty'
        'brltty.conf'
	     'brltty.service')
md5sums=('8ebe96efe679f5f6ccff08928fec5b26'
         '831ebaf0c56091702929c68805d20c4f'
         'a8ab8b3dd059e96e1734bc9cdcf844fc'
         '7acecd700b9f94d76fe4a6ad56cb0448')
build() {
  cd "$srcdir/$pkgname-$pkgver"
  sed -i 's|/usr/bin/python|/usr/bin/python2|' Tables/latex-access.ctb
  ./configure --prefix=/usr \
    --sysconfdir=/etc \
    --mandir=/usr/share/man \
    --localstatedir=/var \
    --with-screen-driver=a2 \
    --enable-gpm \
    --disable-java-bindings \
    PYTHON=/usr/bin/python2

  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"
  install -D -m644 "$srcdir/brltty.service" "$pkgdir/usr/lib/systemd/system/brltty.service"
}