live-bootstrap/sysa/help2man-1.36.4/help2man-1.36.4.sh

33 lines
704 B
Bash
Raw Normal View History

2021-03-19 15:40:07 +00:00
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
# SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
2021-03-19 15:40:07 +00:00
#
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default
2022-07-07 20:43:39 +01:00
ACLOCAL=aclocal-1.8 AUTOMAKE=automeke-1.8 autoreconf-2.59 -f
rm help2man.info
touch help2man.info
2021-03-19 15:40:07 +00:00
}
src_configure() {
CC=tcc ./configure --prefix="${PREFIX}" --disable-nls
}
src_compile() {
make MAKEINFO=true
2021-03-19 15:40:07 +00:00
# fix a broken shebang
chmod +w help2man
2021-03-19 15:40:07 +00:00
tail -n +6 help2man > help2man.tmp
echo "#!${PREFIX}/bin/perl" > help2man
2021-03-19 15:40:07 +00:00
cat help2man.tmp >> help2man
rm help2man.tmp
}
src_install() {
make MAKEINFO=true DESTDIR="${DESTDIR}" install
}