1 # Description: Fast Lexical Analyzer Generator
2 # URL: http://flex.sourceforge.net/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
10 source=(http://downloads.sourceforge.net/project/$name/$name-$version.tar.bz2)
15 echo "ac_cv_func_malloc_0_nonnull=yes" > config.cache
16 echo "ac_cv_func_realloc_0_nonnull=yes" >> config.cache
18 ./configure --build=$CHOST \
22 --cache-file=config.cache
25 make DESTDIR=$PKG install
27 ln -sf flex $PKG/usr/bin/lex
28 ln -sf flex.1.gz $PKG/usr/share/man/man1/lex.1.gz
30 rm -r $PKG/usr/share/{info,doc}