1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Alexander Epaneshnikov <aarnaarn2@gmail.com>
3 # Contributor: Tom Gundersen <teg@jklm.no>
4 # Contributor: Jan de Groot <jgc@archlinux.org>
5 # Contributor: Giovanni Scafora <giovanni@archlinux.org>
10 pkgdesc="Braille display driver for Linux/Unix"
12 url="https://brltty.app"
14 depends=('bluez-libs' 'gcc-libs' 'glibc' 'liblouis' 'libspeechd' 'pcre2'
16 makedepends=('alsa-lib' 'at-spi2-atk' 'at-spi2-core' 'atk' 'cython' 'dbus'
17 'dracut' 'espeak-ng' 'expat' 'festival' 'glib2' 'gpm' 'icu' 'java-environment'
18 'libxaw' 'ncurses' 'ocaml-ctypes' 'ocaml-findlib' 'speech-dispatcher'
20 optdepends=('at-spi2-core: X11/GNOME Apps accessibility'
21 'atk: ATK bridge for X11/GNOME accessibility'
22 'espeak-ng: espeak-ng driver'
23 'java-runtime: Java support'
27 'libxfixes: for xbrlapi'
28 'libxtst: for xbrlapi'
29 'ocaml: OCaml support'
30 'python: Python support'
31 'speech-dispatcher: speech-dispatcher driver')
32 provides=('libbrlapi.so')
33 backup=(etc/brltty.conf)
34 options=('!emptydirs')
35 install=brltty.install
36 source=("https://brltty.app/archive/${pkgname}-${pkgver}.tar.bz2"
37 "${pkgname}-6.2-systemd_sysusers_groups.patch"
39 sha512sums=('58394c18d56a2a93a44be1c5dcfd02613581820ea2d2dbd945372ea11e066a18a75832ea04f09cf7f411e6dd1cd4ec78574f317dafcbc5c431dcf0db21b93690'
40 '32ba91271e2247b4a330cd213ed75b591268cb99a79c2efd9ae675804faee027c6b2f782768cb2329a65fc914ca2400b2901f35ce1fc2522c6691b343799eb02')
41 b2sums=('2c31b8282f0bc4730e406772c8b5aa72b1650e3290cfe967ec668394627440f84afe936bfbdbdab9ee0e7ba93ef466950295dbd7d979b639605fe619b5c170bd'
42 '036e36d558594bb06af1eb41ff5fc9ae52ccf4bad54556c3f4f81a5e2f31f574039835e5e756455527c327a73d563a3db54a9f32e3478545a2a22c2725aaeee2')
45 cd "${pkgname}-${pkgver}"
46 patch -Np1 -i ../"${pkgname}-6.2-systemd_sysusers_groups.patch"
51 cd "${pkgname}-${pkgver}"
52 ./configure --prefix=/usr \
54 --localstatedir=/var \
55 --mandir=/usr/share/man \
56 --with-scripts-directory=/usr/lib/brltty \
57 --with-tables-directory=/usr/share/brltty \
58 --with-writable-directory=/run/brltty \
65 depends+=('libasound.so' 'libdbus-1.so' 'libexpat.so' 'libgio-2.0.so'
66 'libglib-2.0.so' 'libgobject-2.0.so' 'libicuuc.so' 'libgpm.so'
67 'libncursesw.so' 'libsystemd.so')
68 cd "${pkgname}-${pkgver}"
69 make INSTALL_ROOT="${pkgdir}" install
70 make INSTALL_ROOT="${pkgdir}" install-systemd
71 make INSTALL_ROOT="${pkgdir}" install-udev
72 # dracut support may still be problematic
73 # https://bugs.archlinux.org/task/69424
74 # https://bugs.archlinux.org/task/69440
75 make INSTALL_ROOT="${pkgdir}" install-dracut
76 make INSTALL_ROOT="${pkgdir}" install-polkit
77 install -vDm 644 "Documents/${pkgname}.conf" -t "${pkgdir}/etc/"
79 # fix directory permission and ownership
80 install -vdm 750 -o root -g 102 "$pkgdir/usr/share/polkit-1/rules.d"