From 11590133e76dd8d770db857cfc5c4d2f924d663a Mon Sep 17 00:00:00 2001 From: dslm4515 <27793627+dslm4515@users.noreply.gitub.com> Date: Sat, 5 Jul 2025 12:13:25 -0500 Subject: [PATCH] Upgraded which from 2.21 to 2.23 --- build-scripts/which-2.21.build | 8 ------ build-scripts/which.build | 46 ++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 8 deletions(-) delete mode 100644 build-scripts/which-2.21.build create mode 100644 build-scripts/which.build diff --git a/build-scripts/which-2.21.build b/build-scripts/which-2.21.build deleted file mode 100644 index 985ff30..0000000 --- a/build-scripts/which-2.21.build +++ /dev/null @@ -1,8 +0,0 @@ -#! /bin/bash - -# Which 2.21 -# Source: https://ftp.gnu.org/gnu/which/which-2.21.tar.gz - -./configure --prefix=/usr $BUILDTRUPLE && -read -p "Compile?" && make -j2 && -read -p "Install?" && sudo -S porg -lD "make install" diff --git a/build-scripts/which.build b/build-scripts/which.build new file mode 100644 index 0000000..a3da002 --- /dev/null +++ b/build-scripts/which.build @@ -0,0 +1,46 @@ +#! /bin/bash + +# GNU Which +# Source: https://ftp.gnu.org/gnu/which/which-2.23.tar.gz +# +# $BUILD = Directory to temporarily install +# $PKGS = Directory to store built packages +# +# DEPS +# Required: NONE +# Recommended: NONE +# Optional: NONE + +export PVER="2.23" + +./configure --prefix=/usr $BUILDTRUPLE + +read -p "Compile?" && make -j2 && + +sudo -S make DESTDIR=$BUILD install && + +cd $BUILD && sudo -S mkdir -v ${BUILD}/install && +cat > /tmp/slack-desc << "EOF" +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +which: which (shows the full path to shell commands) +which: +which: GNU 'which' takes one or more arguments. For each of its arguments it +which: prints to stdout the full path of the executables that would have been +which: executed when this argument had been entered at the shell prompt. It +which: does this by searching for an executable or script in the directories +which: listed in the environment variable PATH using the same algorithm as +which: bash(1). 'Which' is a built-in function in many shells. +which: +which: The GNU version of which was written by Carlo Wood. +which: +EOF +sudo -S mv -v /tmp/slack-desc install/ && +sudo -S makepkg -l y -c n $PKGS/which-$PVER-$PSUFFIX && +sudo -S rm -rf ${BUILD}/*