31 lines
1.1 KiB
Bash
31 lines
1.1 KiB
Bash
#!/bin/sh
|
|
name="flex"
|
|
short_desc="The Fast Lexical Analyzer"
|
|
desc="This is flex, the fast lexical analyzer generator.
|
|
|
|
flex is a tool for generating scanners: programs which recognize lexical patterns in text.
|
|
|
|
The flex codebase is kept in Git on GitHub. Source releases of flex with some intermediate
|
|
files already built can be found on the github releases page."
|
|
category="textproc"
|
|
version="2.6.4"
|
|
maintainer="ffqq@danwin1210.de"
|
|
www="https://github.com/westes/flex"
|
|
master_site="https://github.com/westes/flex/releases/download/v$version"
|
|
source_name="$name-$version.tar.gz"
|
|
license_logic="single" # accepted values: single, and, or
|
|
licenses=("BSD-3-CLAUSE")
|
|
|
|
build_dependencies=("lang/gcc" "devel/gmake")
|
|
run_dependencies=("system/glibc")
|
|
|
|
build_process() {
|
|
cd $name-$version || exit 1
|
|
./configure --prefix=/usr \
|
|
--disable-static || exit 1
|
|
make -j$(nproc) || exit 1
|
|
make DESTDIR="$TAMANDUA_STAGE_DIR" install || exit 1
|
|
ln -sv /usr/bin/flex $TAMANDUA_STAGE_DIR/usr/bin/lex
|
|
ln -sv /usr/share/man/man1/flex.1 $TAMANDUA_STAGE_DIR/usr/share/man/man1/lex.1
|
|
rm -r $TAMANDUA_STAGE_DIR/usr/share/info
|
|
} |