aboutsummaryrefslogtreecommitdiff
path: root/development/astyle/astyle.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-09-18 23:23:33 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-09-23 11:33:46 +0700
commit70512eadfd420fcf618faf3b9b00e2e280166e00 (patch)
treed918fb55c0984ab9bc44ce93e287e54bb435194a /development/astyle/astyle.SlackBuild
parentbd09cc3eea627485f656423b900150ce34923292 (diff)
development/astyle: Updated for version 3.4.6, fix zsh completion.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
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 4a4f2d269a79c..4c0aeae73ef14 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