Add which 2.21.

This commit is contained in:
Andrius Štikonas 2022-09-16 22:40:00 +01:00
parent d72c68369e
commit 9f3f65f146
6 changed files with 36 additions and 0 deletions

22
sysc/which-2.21/which-2.21.sh Executable file
View file

@ -0,0 +1,22 @@
# SPDX-FileCopyrightText: 2022 Andrius Štikonas <andrius@stikonas.eu>
#
# SPDX-License-Identifier: GPL-3.0-or-later
urls="https://carlowood.github.io/which/which-2.21.tar.gz"
src_prepare() {
rm configure Makefile.in aclocal.m4 which.1
touch ChangeLog which.1
sed -i '/@ACLOCAL_CWFLAGS@/d' Makefile.am
autoreconf-2.69 -fi
}
src_configure() {
CFLAGS="-static" ./configure --prefix="${PREFIX}"
}
src_install() {
default
rm "${DESTDIR}/${PREFIX}/share/man/man1/which.1"
}