summaryrefslogtreecommitdiffstats
path: root/extra/source/brltty/brltty.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'extra/source/brltty/brltty.SlackBuild')
-rwxr-xr-xextra/source/brltty/brltty.SlackBuild16
1 files changed, 12 insertions, 4 deletions
diff --git a/extra/source/brltty/brltty.SlackBuild b/extra/source/brltty/brltty.SlackBuild
index 78a8252a8..d0cef43ed 100755
--- a/extra/source/brltty/brltty.SlackBuild
+++ b/extra/source/brltty/brltty.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# Copyright 2010, 2012, 2013, 2016, 2017, 2018, 2020 Patrick J. Volkerding, Sebeka, Minnesota, USA
+# Copyright 2010, 2012, 2013, 2016, 2017, 2018, 2020, 2021, 2024 Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -32,7 +32,7 @@ PKG=/tmp/package-brltty
PKGNAM=brltty
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-4}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
@@ -81,6 +81,7 @@ find . -perm 600 -exec chmod 644 {} \+
--bindir=/bin \
--sbindir=/sbin \
--libdir=/lib${LIBDIRSUFFIX} \
+ --libexecdir=/usr/lib${LIBDIRSUFFIX} \
--infodir=/usr/info \
--mandir=/usr/man \
--sysconfdir=/etc \
@@ -92,8 +93,16 @@ find . -perm 600 -exec chmod 644 {} \+
make $NUMJOBS || exit 1
make install INSTALL_ROOT=$PKG || exit 1
+make install TCL_DIR=/usr/lib${LIBDIRSUFFIX} INSTALL_ROOT=$PKG || exit 1
chmod 755 $PKG/bin/* $PKG/lib${LIBDIRSUFFIX}/brltty/*
+# This location does not appear to be (easily) configurable, so we'll
+# just go ahead and move this directory if we find it in the wrong place:
+if [ -d $PKG/usr/local/lib${LIBDIRSUFFIX}/lua ]; then
+ mv $PKG/usr/local/lib${LIBDIRSUFFIX}/lua $PKG/usr/lib${LIBDIRSUFFIX}
+ ( cd $PKG/usr ; rmdir -p local/lib${LIBDIRSUFFIX} )
+fi
+
# Add polkit configs:
( cd Authorization/Polkit
make install INSTALL_ROOT=$PKG
@@ -154,5 +163,4 @@ EOF
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-makepkg -l y -c n ../brltty-$VERSION-$ARCH-$BUILD.txz
-
+makepkg -l y -c n $TMP/brltty-$VERSION-$ARCH-$BUILD.txz