2022-05-07 22:59:59 +01:00
|
|
|
# SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
default
|
|
|
|
|
|
|
|
# Regnerate src/tool_cb_prg.c
|
2023-12-29 22:03:06 +00:00
|
|
|
sed -i "57,78d" src/tool_cb_prg.c
|
|
|
|
sed -i "57 s/^/$(perl sinus.pl | sed "s/, $//")\n/" src/tool_cb_prg.c
|
2022-05-07 22:59:59 +01:00
|
|
|
|
|
|
|
rm src/tool_help.c src/tool_help.h src/tool_listhelp.c src/tool_hugehelp.c
|
|
|
|
|
|
|
|
# Rebuild libtool files
|
|
|
|
rm config.guess config.sub ltmain.sh
|
|
|
|
libtoolize
|
|
|
|
|
2022-07-07 20:43:39 +01:00
|
|
|
AUTOMAKE=automake-1.15 ACLOCAL=aclocal-1.15 autoreconf-2.69 -fi
|
2022-05-07 22:59:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
LDFLAGS="-static" ./configure \
|
|
|
|
--prefix="${PREFIX}" \
|
2022-09-14 13:07:13 +01:00
|
|
|
--libdir="${LIBDIR}" \
|
2023-03-23 17:35:38 +00:00
|
|
|
--build=i386-unknown-linux-gnu \
|
2023-01-20 22:08:36 +00:00
|
|
|
--enable-ipv6 \
|
2023-03-23 17:35:38 +00:00
|
|
|
--without-ssl \
|
|
|
|
--disable-hsts
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default
|
|
|
|
install -m 755 scripts/mk-ca-bundle.pl "${DESTDIR}/usr/bin/mk-ca-bundle"
|
2022-05-07 22:59:59 +01:00
|
|
|
}
|