base/src/which/pkg.sh

23 lines
468 B
Bash
Raw Normal View History

2024-07-09 13:44:10 +00:00
# general info
NAME="which"
DESC="Shows the full path of (shell) commands"
VERSION="2.21"
# required files
FILES=("https://ftp.gnu.org/gnu/which/which-${VERSION}.tar.gz")
HASHES=("097ff1a324ae02e0a3b0369f07a7544a")
# install and build depends
DEPENDS=("glibc" "bash")
BUILD=()
2024-07-29 23:57:37 +00:00
PACKAGE(){
2024-07-09 13:44:10 +00:00
tar xf "${NAME}-${VERSION}.tar.gz"
cd "${NAME}-${VERSION}"
./configure --prefix=/usr && make
make DESTDIR="${ROOTDIR}" install
cd .. && rm -r "${NAME}-${VERSION}"
}