2021-03-19 15:40:07 +00:00
|
|
|
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
2022-03-07 07:58:20 +00:00
|
|
|
# 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() {
|
2022-06-05 21:07:01 +01:00
|
|
|
default
|
|
|
|
|
2022-07-07 20:43:39 +01:00
|
|
|
ACLOCAL=aclocal-1.8 AUTOMAKE=automeke-1.8 autoreconf-2.59 -f
|
2021-04-19 00:44:21 +01:00
|
|
|
|
|
|
|
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() {
|
2021-04-19 00:44:21 +01:00
|
|
|
make MAKEINFO=true
|
2021-03-19 15:40:07 +00:00
|
|
|
|
|
|
|
# fix a broken shebang
|
2022-01-03 23:06:59 +00:00
|
|
|
chmod +w help2man
|
2021-03-19 15:40:07 +00:00
|
|
|
tail -n +6 help2man > help2man.tmp
|
2022-01-03 23:06:59 +00:00
|
|
|
echo "#!${PREFIX}/bin/perl" > help2man
|
2021-03-19 15:40:07 +00:00
|
|
|
cat help2man.tmp >> help2man
|
|
|
|
rm help2man.tmp
|
|
|
|
}
|
2021-04-19 00:44:21 +01:00
|
|
|
|
|
|
|
src_install() {
|
|
|
|
make MAKEINFO=true DESTDIR="${DESTDIR}" install
|
|
|
|
}
|