summaryrefslogtreecommitdiffstats
path: root/development/astyle/astyle.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/astyle/astyle.SlackBuild')
-rw-r--r--development/astyle/astyle.SlackBuild12
1 files changed, 7 insertions, 5 deletions
diff --git a/development/astyle/astyle.SlackBuild b/development/astyle/astyle.SlackBuild
index 4a4f2d269a..4c0aeae73e 100644
--- a/development/astyle/astyle.SlackBuild
+++ b/development/astyle/astyle.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for Artistic Style
-# Copyright 2020 B. Watson <urchlay@slackware.uk>
+# Copyright 2020-2023 B. Watson <urchlay@slackware.uk>
# Copyright 2017,2018 Nate Bargmann <email removed>
@@ -34,6 +34,8 @@
# along with this program (most likely, a file named COPYING). If
# not, see <http://www.gnu.org/licenses/>.
+# 20230918 bkw: update for v3.4.6, fix zsh completion.
+
# 20230818 bkw:
# - Update for v3.4.
# - Upstream includes a man page now, use it instead of Debian's.
@@ -56,7 +58,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=astyle
-VERSION=${VERSION:-3.4}
+VERSION=${VERSION:-3.4.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -130,13 +132,13 @@ cp -a file/* $PKG/usr/share/$PRGNAM
ln -s ../../share/$PRGNAM $DOCDIR/file
# 20230820 bkw: upstream added shell completion support.
-# The zsh completion is broken, apparently (doesn't work for me), but
-# I don't know (or care) enough about zsh to fix it. Patches welcome.
+# 20230918 bkw: the zsh completion is broken, fix it.
+sed -i 's,"\(mode\[\),"--\1,' sh-completion/astyle.zsh
mkdir -p $PKG/usr/share/bash-completion/completions \
$PKG/usr/share/zsh/site-functions \
$PKG/etc/fish/completions
install -m0644 sh-completion/astyle.bash $PKG/usr/share/bash-completion/completions/astyle
-#install -m0644 sh-completion/astyle.zsh $PKG/usr/share/zsh/site-functions/_astyle
+install -m0644 sh-completion/astyle.zsh $PKG/usr/share/zsh/site-functions/_astyle
install -m0644 sh-completion/astyle.fish $PKG/etc/fish/completions
cp -a *.md $DOCDIR