initial import
This commit is contained in:
83
brltty/PKGBUILD
Normal file
83
brltty/PKGBUILD
Normal file
@@ -0,0 +1,83 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=brltty
|
||||
pkgver=6.3
|
||||
_debver=$pkgver
|
||||
_debrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Braille display driver"
|
||||
arch=('i686' 'x86_64')
|
||||
url='https://brltty.app'
|
||||
license=('LGPL-2.1')
|
||||
depends=('gcc-libs' 'glibc' 'liblouis' 'libspeechd' 'pcre2' 'tcl')
|
||||
makedepends=('alsa-lib' 'atk' 'python-cython' 'espeak' 'expat' 'glib2' 'gpm' 'icu' 'libxaw'
|
||||
'ncurses' 'speech-dispatcher' 'quilt')
|
||||
optdepends=('atk: ATK bridge for X11/GNOME accessibility'
|
||||
'espeak: espeak driver'
|
||||
'libxaw: X11 support'
|
||||
'libxt: X11 support'
|
||||
'libx11: for xbrlapi'
|
||||
'libxfixes: for xbrlapi'
|
||||
'libxtst: for xbrlapi'
|
||||
'python: Python support'
|
||||
'speech-dispatcher: speech-dispatcher driver')
|
||||
backup=(etc/brltty.conf)
|
||||
options=('!emptydirs')
|
||||
install=brltty.install
|
||||
source=("https://brltty.app/archive/${pkgname}-${pkgver}.tar.bz2"
|
||||
"https://deb.debian.org/debian/pool/main/b/brltty/brltty_${_debver}+dfsg-${_debrel}+deb11u1.debian.tar.xz"
|
||||
"fix-build.patch"
|
||||
"$pkgname.initd"
|
||||
"$pkgname.run")
|
||||
sha512sums=('687fbb30703d4c9fd7b55d27fabecf26c58f7c032c82bcdee1405259da74f85516e268fc49d1bdb2f704b92532cf5c466712cc09b1a4ba5304d4e021af74b7b8'
|
||||
'5350de6070b7bb2e343a8e328cdad6557fb47178145bde1c2085833a8bd48acc7bf4e366bc91c480a37976abc4df09cb725ab0d682d7bd7987e086c6d73ac6f4'
|
||||
'd8d3e8f6851fefc90a5855cd36fe78675c09f6c92af98cf7f0ef68d90f3d1d470a0db83b25125d2197da18873768b4c95826fcece602c813d93ff97524e129a9'
|
||||
'2be94c464898a9156d67e300c19008343bd34376ccbcd268c49ecbd05149b4bbbf03102a2fd6c972156432e9b9b45491c012dd343c0e27b8d0bee71ee9e12828'
|
||||
'58a4eab3513593705541cfb1e8a8a20ac31028a0e94f9f3f4665721c15e5e4020864668082cee51c79710d9224d02f416bc228eb0d8cca9e9b0b0555eb4c7cce')
|
||||
|
||||
prepare() {
|
||||
cd "${pkgname}-${pkgver}"
|
||||
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
|
||||
# Debian patches
|
||||
export QUILT_PATCHES=debian/patches
|
||||
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
|
||||
export QUILT_DIFF_ARGS='--no-timestamps'
|
||||
|
||||
mv "$srcdir"/debian .
|
||||
|
||||
quilt push -av
|
||||
fi
|
||||
patch -Np1 -i ${srcdir}/fix-build.patch
|
||||
./autogen
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${pkgname}-${pkgver}"
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/share/man \
|
||||
--with-scripts-directory=/usr/lib/brltty \
|
||||
--with-tables-directory=/usr/share/brltty \
|
||||
--with-writable-directory=/run/brltty \
|
||||
--enable-gpm \
|
||||
--disable-stripping \
|
||||
--disable-polkit \
|
||||
--disable-java-bindings \
|
||||
--disable-ocaml-bindings
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${pkgname}-${pkgver}"
|
||||
make INSTALL_ROOT="${pkgdir}" install
|
||||
make INSTALL_ROOT="${pkgdir}" install-udev
|
||||
|
||||
install -vDm 644 "Documents/${pkgname}.conf" -t "${pkgdir}/etc/"
|
||||
|
||||
install -Dm755 ${srcdir}/$pkgname.initd "${pkgdir}/etc/init.d/$pkgname"
|
||||
install -Dm755 ${srcdir}/$pkgname.run "${pkgdir}/etc/sv/$pkgname/run"
|
||||
|
||||
install -Dm644 LICENSE-LGPL -t "${pkgdir}/usr/share/licenses/$pkgname"
|
||||
}
|
||||
12
brltty/brltty.initd
Normal file
12
brltty/brltty.initd
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
command=/usr/bin/brltty
|
||||
pidfile=/var/run/brltty.pid
|
||||
command_args="-P $pidfile -q"
|
||||
|
||||
depend() {
|
||||
before *
|
||||
after clock
|
||||
}
|
||||
17
brltty/brltty.install
Normal file
17
brltty/brltty.install
Normal file
@@ -0,0 +1,17 @@
|
||||
post_install () {
|
||||
getent group brlapi &>/dev/null || groupadd -r brlapi
|
||||
if [ ! -e /etc/brlapi.key ]; then
|
||||
mcookie >/etc/brlapi.key
|
||||
chmod 0640 /etc/brlapi.key
|
||||
chgrp brlapi /etc/brlapi.key
|
||||
echo "Please add your user to the brlapi group."
|
||||
fi
|
||||
}
|
||||
|
||||
post_upgrade () {
|
||||
post_install
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
[ -e /etc/brlapi.key ] && rm -v /etc/brlapi.key
|
||||
}
|
||||
3
brltty/brltty.run
Normal file
3
brltty/brltty.run
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
mkdir -p /var/run/brltty || exit 1
|
||||
exec brltty -n
|
||||
22
brltty/fix-build.patch
Normal file
22
brltty/fix-build.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
--- a/configure.ac 2021-01-28 13:12:55.000000000 +0100
|
||||
+++ b/configure.ac 2022-02-15 22:27:50.154631324 +0100
|
||||
@@ -1130,7 +1130,7 @@
|
||||
BRLTTY_PKGCONFIG_VARIABLE([SYSTEMD_SYSUSERS_DIR], [systemd], [sysusersdir], [/usr/lib/sysusers.d])
|
||||
BRLTTY_PKGCONFIG_VARIABLE([SYSTEMD_TMPFILES_DIR], [systemd], [tmpfilesdir], [/usr/lib/tmpfiles.d])
|
||||
BRLTTY_PKGCONFIG_VARIABLE([SYSTEMD_UNIT_DIR], [systemd], [systemdsystemunitdir], [/usr/lib/systemd/system])
|
||||
-BRLTTY_PKGCONFIG_VARIABLE([UDEV_DIR], [udev], [udevdir], [/usr/lib/udev])
|
||||
+BRLTTY_PKGCONFIG_VARIABLE([UDEV_DIR], [udev], [udevdir], [/lib/udev])
|
||||
|
||||
BRLTTY_ARG_PACKAGE([system], [base system], [], [dnl
|
||||
*android*)
|
||||
--- a/Messages/Makefile.in 2022-02-15 21:40:29.000000000 +0100
|
||||
+++ b/Messages/Makefile.in 2022-02-15 21:51:12.752962003 +0100
|
||||
@@ -54,7 +54,7 @@
|
||||
|
||||
objects: $(OBJECT_FILES)
|
||||
%.$(OBJECT_EXTENSION): FORCE
|
||||
- $(MSGFMT) --output-file $@ -- $(SRC_DIR)/$(@F:.$(OBJECT_EXTENSION)=.$(SOURCE_EXTENSION))
|
||||
+ $(MSGFMT) $(SRC_DIR)/$(@F:.$(OBJECT_EXTENSION)=.$(SOURCE_EXTENSION)) -o $@
|
||||
directory="$(LOCALE_SUBDIRECTORY)/$(@:.$(OBJECT_EXTENSION)=)/$(MESSAGES_SUBDIRECTORY)"; \
|
||||
$(INSTALL_DIRECTORY) $${directory}; \
|
||||
cd $${directory}; \
|
||||
Reference in New Issue
Block a user