Merge pull request #200 from stikonas/which

Add which 2.21.
This commit is contained in:
Andrius Štikonas 2022-09-17 14:31:30 +01:00 committed by GitHub
commit ee853d91fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 36 additions and 0 deletions

View file

@ -48,5 +48,6 @@ ac610bda97abe0d9f6b7c963255a11dcb196c25e337c61f94e4778d632f1d8fd patch-2.7.6.ta
63bebd26879c5e1eea4352f0d03c991f966aeb3ddeb3c7445c902568d5411d28 tar-1.34.tar.xz
988403c1542d15ad044600b909997ba3079b10e03224c61188117f3676b02caa texinfo-6.7.tar.xz
0cbd8d5f23a62047c75974bca21da9f004a94efffd7f37c68562a8dbc869fb2a 0.59.1.tar.gz
f4a245b94124b377d8b49646bf421f9155d36aa7614b6ebf83705d3ffc76eaad which-2.21.tar.gz
166c48d2842519bc4f96333bff9e265f8cdda44d38e40594ef3f9bbb52890490 xz-5.0.5.tar.bz2
7db46b8d7726232a621befaab4a1c870f00a90805511c0e0090441dac57def18 zlib-1.2.12.tar.xz

View file

@ -98,6 +98,8 @@ build gc-8.0.4
build guile-3.0.7
build which-2.21
if [ "$FORCE_TIMESTAMPS" = True ] ; then
echo 'Forcing all files timestamps to be 0 unix time.'
canonicalise_all_files_timestamp

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"
}