aboutsummaryrefslogtreecommitdiff
path: root/development/astyle
diff options
context:
space:
mode:
Diffstat (limited to 'development/astyle')
-rw-r--r--development/astyle/astyle.SlackBuild12
-rw-r--r--development/astyle/astyle.info6
2 files changed, 10 insertions, 8 deletions
diff --git a/development/astyle/astyle.SlackBuild b/development/astyle/astyle.SlackBuild
index 4a4f2d269a79..4c0aeae73ef1 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
diff --git a/development/astyle/astyle.info b/development/astyle/astyle.info
index cc2ad663fc22..443c5a2c7bdd 100644
--- a/development/astyle/astyle.info
+++ b/development/astyle/astyle.info
@@ -1,8 +1,8 @@
PRGNAM="astyle"
-VERSION="3.4"
+VERSION="3.4.6"
HOMEPAGE="https://astyle.sourceforge.net/"
-DOWNLOAD="https://downloads.sourceforge.net/project/astyle/astyle/astyle%203.4/astyle-3.4.tar.bz2"
-MD5SUM="65a0a003969603c59629db74a208bb1e"
+DOWNLOAD="https://downloads.sourceforge.net/project/astyle/astyle/astyle%203.4/astyle-3.4.6.tar.bz2"
+MD5SUM="721be5df49a414ae286271eef607e12f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""