live-bootstrap/steps/gperf-3.3/pass1.sh
2026-01-15 21:33:10 +11:00

29 lines
663 B
Bash
Executable file

# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
#
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default
rm doc/gperf.{1,dvi,info,pdf,ps} doc/*.html
touch doc/gperf.info doc/gperf.pdf
# Useless tests things
rm tests/*.exp tests/{languages,charsets}.gperf tests/lang-ucs2.in
GNULIB_SRCDIR=$(realpath ../gnulib-b08ee1d) \
AUTOCONF=autoconf-2.71 \
./autogen.sh
}
src_configure() {
./configure --prefix="${PREFIX}"
}
src_compile() {
make "${MAKEJOBS}" MAKEINFO=true PREFIX="${PREFIX}"
}
src_install() {
make MAKEINFO=true PREFIX="${PREFIX}" DESTDIR="${DESTDIR}" install
}