live-bootstrap/sysa/flex-2.5.11/flex-2.5.11.sh

26 lines
595 B
Bash
Executable File

# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
#
# SPDX-License-Identifier: GPL-3.0-or-later
checksum=8c0c50860613d0223d36892013493b069c1855eb002b95526d55d590207635ec
# When we rebuild flex it no longer needs patching
# and can use simplified makefile
src_prepare() {
default
touch config.h
rm parse.c parse.h scan.c skel.c
}
src_install() {
if test -d /lex; then
# Remove lex, later make install will symlink lex to flex
rm -rf /lex
rm -f "${PREFIX}/bin/lex"
rm -f "${PREFIX}/lib/mes/libl.a"
fi
default
}