From a7953f24e350b835d515651f218e2701ab4ae5f3 Mon Sep 17 00:00:00 2001 From: nfg <sonnysighed@e.email> Date: Wed, 28 Jun 2023 23:35:47 +0000 Subject: [PATCH] upgpkg: 6.5-6 --- version/6.5-6/LICENSE | 15 ++ version/6.5-6/PKGBUILD | 194 +++++++++++++++++++ version/6.5-6/brltty-6.4-x11_autostart.patch | 24 +++ version/6.5-6/brltty.install | 12 ++ version/6.5-6/brltty.sysusers | 49 +++++ version/6.5-6/brltty.tmpfiles | 11 ++ 6 files changed, 305 insertions(+) create mode 100644 version/6.5-6/LICENSE create mode 100644 version/6.5-6/PKGBUILD create mode 100644 version/6.5-6/brltty-6.4-x11_autostart.patch create mode 100644 version/6.5-6/brltty.install create mode 100644 version/6.5-6/brltty.sysusers create mode 100644 version/6.5-6/brltty.tmpfiles diff --git a/version/6.5-6/LICENSE b/version/6.5-6/LICENSE new file mode 100644 index 0000000..296c1fb --- /dev/null +++ b/version/6.5-6/LICENSE @@ -0,0 +1,15 @@ +Copyright (c) 2015-2020 Eric Vidal <eric@obarun.org> +Copyright (c) 2015-2020 Jean-Michel T.Dydak <jean-michel@obarun.org> +All rights reserved. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/version/6.5-6/PKGBUILD b/version/6.5-6/PKGBUILD new file mode 100644 index 0000000..b2b4b83 --- /dev/null +++ b/version/6.5-6/PKGBUILD @@ -0,0 +1,194 @@ +# Copyright : Obarun +#------------------------ +# Maintainer : Eric Vidal <eric@obarun.org> +# Maintainer : Jean-Michel T.Dydak <jean-michel@obarun.org> +# Maintainer : YianIris <yianiris At disroot Dot org> +#---------------- +# Obarun PkgSrc : https://git.obarun.org/pkg/obextra/brltty +#----------------------------------------------------------- +# DESCRIPTION ] + +pkgbase=brltty +pkgname=(brltty brltty-udev-generic) +pkgver=6.5 +pkgrel=6 +pkgdesc="Braille display driver for Linux/Unix" +url='https://brltty.app' + +track="archive" +target="$pkgname-$pkgver" +source=( + "https://brltty.app/${track}/${target}.tar.bz2" + $pkgname-6.4-x11_autostart.patch + brltty.sysusers + brltty.tmpfiles +) + +#---------------------- +# BUILD CONFIGURATION ] + +makedepends=( + 'alsa-lib' + 'at-spi2-atk' + 'at-spi2-core' + 'atk' + 'bluez-libs' + 'cython' + 'dbus' + 'espeak-ng' + 'expat' + 'festival' + 'gcc-libs' + 'glib2' + 'gpm' + 'icu' + 'java-environment' + 'liblouis' + 'libspeechd' + 'libxaw' + 'ncurses' + 'ocaml-ctypes' + 'ocaml-findlib' + 'pcre2' + 'polkit' + 'python-setuptools' + 'speech-dispatcher' + 'strip-nondeterminism' + 'tcl' +) ## 'dracut' + +options=( + '!emptydirs') + +#------------------------ +# INSTALL CONFIGURATION ] + +depends=( + 'bluez-libs' + 'gcc-libs' + 'glibc' + 'liblouis' + 'libspeechd' + 'pcre2' + 'polkit' +) + +#-------------------- +# BUILD PREPARATION ] + +prepare() { + cd $pkgbase-$pkgver + patch -Np1 -i ../$pkgbase-6.4-x11_autostart.patch + ./autogen +} + +#---------------------- +# BUILD CONFIGURATION ] + +_flags=( + --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 + --disable-stripping + --enable-gpm +) + +#-------- +# BUILD ] + +build() { + # fat-lto-objects is required for non-mangled static libs + CFLAGS+=" -ffat-lto-objects" + + cd $pkgbase-$pkgver + + ./configure "${_flags[@]}" + make -j1 + + ## make brlapi.jar deterministic + find . -type f -iname "*.jar" -exec strip-nondeterminism {} \; +} + +#---------- +# PACKAGE ] + +package_brltty() { + depends+=( + bluez-libs + gcc-libs + glibc + liblouis + libspeechd + libasound.so + libdbus-1.so + libexpat.so + libgio-2.0.so + libglib-2.0.so + libgobject-2.0.so + libicuuc.so + libgpm.so + libncursesw.so + pcre2 + polkit + ) + optdepends=( + 'at-spi2-core: X11/GNOME Apps accessibility' + 'atk: ATK bridge for X11/GNOME accessibility' + 'brltty-udev-generic: for initializing brltty with generic USB devices' + 'espeak-ng: espeak-ng driver' + 'java-runtime: Java support' + 'libxaw: X11 support' + 'libxt: X11 support' + 'libx11: for xbrlapi' + 'libxfixes: for xbrlapi' + 'libxtst: for xbrlapi' + 'ocaml: OCaml support' + 'python: Python support' + 'speech-dispatcher: speech-dispatcher driver' + 'tcl: tcl support' + ) + backup=( + 'etc/brltty.conf' + 'etc/X11/xinit/xinitrc.d/90xbrlapi' + ) + + provides=( + 'libbrlapi.so' + ) + + install=brltty.install + + cd $pkgname-$pkgver + + # installation does not work reliably with many cores, so set jobs to 1 + make -j1 INSTALL_ROOT="$pkgdir" install + make -j1 INSTALL_ROOT="$pkgdir" install-udev + #make -j1 INSTALL_ROOT="$pkgdir" install-dracut + make -j1 INSTALL_ROOT="$pkgdir" install-polkit + install -vDm 644 Documents/$pkgbase.conf -t "$pkgdir/etc/" + + # fix directory permission and ownership + install -vdm 750 -o root -g 102 "$pkgdir/usr/share/polkit-1/rules.d" + + # move generic udev rule, as it applies too broadly + mv -v "$pkgdir/usr/lib/udev/rules.d/90-brltty-usb-generic.rules" ../ +} + +package_brltty-udev-generic() { + pkgdesc="Generic udev rules for brltty" + depends=(brltty) + + install -vDm 644 90-brltty-usb-generic.rules -t "$pkgdir/usr/lib/udev/rules.d/" +} + +#-------------------- +# ARCH LICENSE AUTH ] + +arch=(x86_64) +license=(LGPL2.1) + +sha512sums=('') diff --git a/version/6.5-6/brltty-6.4-x11_autostart.patch b/version/6.5-6/brltty-6.4-x11_autostart.patch new file mode 100644 index 0000000..c2f6cf6 --- /dev/null +++ b/version/6.5-6/brltty-6.4-x11_autostart.patch @@ -0,0 +1,24 @@ +diff -ruN a/Programs/Makefile.in b/Programs/Makefile.in +--- a/Programs/Makefile.in 2021-09-24 17:51:55.000000000 +0200 ++++ b/Programs/Makefile.in 2021-12-28 18:50:08.104123921 +0100 +@@ -1120,7 +1120,7 @@ + install-xbrlapi: xbrlapi$X install-program-directory install-x11-autostart-directory install-gdm-autostart-directory + $(INSTALL_PROGRAM) xbrlapi$X $(INSTALL_PROGRAM_DIRECTORY) + $(INSTALL_DATA) $(BLD_TOP)$(DOC_DIR)/xbrlapi.1 $(INSTALL_MAN1_DIRECTORY) +- $(INSTALL_DATA) $(BLD_TOP)Autostart/X11/$(XBRLAPI_X11_AUTOSTART_FILE) $(INSTALL_X11_AUTOSTART_DIRECTORY) ++ $(INSTALL_PROGRAM) $(BLD_TOP)Autostart/X11/$(XBRLAPI_X11_AUTOSTART_FILE) $(INSTALL_X11_AUTOSTART_DIRECTORY) + $(INSTALL_DATA) $(SRC_TOP)Autostart/gdm/$(XBRLAPI_GDM_AUTOSTART_FILE) $(INSTALL_GDM_AUTOSTART_DIRECTORY) + + install-tables: $(INSTALL_TEXT_TABLES) $(INSTALL_CONTRACTION_TABLES) $(INSTALL_ATTRIBUTES_TABLES) install-keyboard-tables install-input-tables +diff -ruN a/common.mk b/common.mk +--- a/common.mk 2021-09-02 11:07:57.000000000 +0200 ++++ b/common.mk 2021-12-28 18:46:33.618469544 +0100 +@@ -121,7 +121,7 @@ + install-apisoc-directory: + -$(INSTALL_DIRECTORY) -m 1777 $(INSTALL_APISOC_DIRECTORY) + +-INSTALL_X11_AUTOSTART_DIRECTORY = $(INSTALL_ROOT)$(sysconfdir)/X11/Xsession.d ++INSTALL_X11_AUTOSTART_DIRECTORY = $(INSTALL_ROOT)$(sysconfdir)/X11/xinit/xinitrc.d + install-x11-autostart-directory: + -$(INSTALL_DIRECTORY) $(INSTALL_X11_AUTOSTART_DIRECTORY) + diff --git a/version/6.5-6/brltty.install b/version/6.5-6/brltty.install new file mode 100644 index 0000000..4dc0233 --- /dev/null +++ b/version/6.5-6/brltty.install @@ -0,0 +1,12 @@ +post_install () { + [ ! -e /etc/brlapi.key ] && brltty-genkey + echo "Please add your user to the brlapi group." +} + +post_upgrade () { + post_install +} + +post_remove() { + [ -e /etc/brlapi.key ] && rm -v /etc/brlapi.key +} diff --git a/version/6.5-6/brltty.sysusers b/version/6.5-6/brltty.sysusers new file mode 100644 index 0000000..e042f8b --- /dev/null +++ b/version/6.5-6/brltty.sysusers @@ -0,0 +1,49 @@ +############################################################################### +# BRLTTY - A background process providing access to the console screen (when in +# text mode) for a blind person using a refreshable braille display. +# +# Copyright (C) 1995-2020 by The BRLTTY Developers. +# +# BRLTTY comes with ABSOLUTELY NO WARRANTY. +# +# This is free software, placed under the terms of the +# GNU Lesser General Public License, as published by the Free Software +# Foundation; either version 2.1 of the License, or (at your option) any +# later version. Please see the file LICENSE-LGPL for details. +# +# Web Page: http://brltty.app/ +# +# This software is maintained by Dave Mielke <dave@mielke.cc>. +############################################################################### + +################################################ +# keep these synchronized with brltty@.service # +################################################ + +u brltty - "Braille Device Daemon" /var/lib/brltty + +# for reading screen content (/dev/vcs*) +# for virtual console monitoring and control (/dev/tty<n>) +m brltty tty + +# for serial I/O (/dev/ttyS<n>) +# probably only one of these should be uncommented +# m brltty dialout +m brltty uucp + +# for USB I/o (/dev/bus/usb/*/*) +# for creating virtual devices (/dev/uinput) +m brltty root + +# for playing sound via the ALSA framework +m brltty audio + +# for playing sound via the Pulse Audio daemon +# m brltty pulse-access + +# for monitoring keyboard input (/dev/input/*) +m brltty input + +# for reading the BrlAPI authorization key file +m brltty brlapi + diff --git a/version/6.5-6/brltty.tmpfiles b/version/6.5-6/brltty.tmpfiles new file mode 100644 index 0000000..0128861 --- /dev/null +++ b/version/6.5-6/brltty.tmpfiles @@ -0,0 +1,11 @@ +# BRLTTY's runtime directory +d /run/brltty 0750 brltty brltty + +# BRLTTY's local state directory +d /var/lib/brltty 2770 brltty brltty + +# BrlAPI's sockets directory +d /var/lib/BrlAPI 3777 brltty brltty + +# BrlAPI's authorization key file +z /etc/brlapi.key 0640 root brlapi -- GitLab