live-bootstrap/sysc/flex-2.5.33/flex-2.5.33.sh
fosslinux 8008de8e73 Add file downloading logic
Add urls to sysc, and modify some tarballs to http (non s) before ssl
2022-06-10 13:30:58 +10:00

32 lines
638 B
Bash
Executable file

# SPDX-FileCopyrightText: 2021-22 fosslinux <fosslinux@aussies.space>
#
# SPDX-License-Identifier: GPL-3.0-or-later
urls="http://download.nust.na/pub2/openpkg1/sources/DST/flex/flex-2.5.33.tar.gz"
src_prepare() {
default
AUTOPOINT=true autoreconf -fi
# Remove pregenerated files
rm parse.c parse.h scan.c
# Remove pregenerated .info
rm doc/flex.info
}
src_configure() {
./configure \
--prefix="${PREFIX}" \
--libdir="${PREFIX}/lib/musl" \
--program-suffix=-2.5.33
}
src_compile() {
make MAKEINFO=true
}
src_install() {
make MAKEINFO=true DESTDIR="${DESTDIR}" install
}