# Description: A tool for generating text-scanning programs # URL: https://github.com/westes/flex # Maintainer: protonesso, nagakamira at gmail dot com # Depends on: m4 # Section: devel name=flex version=2.6.4 release=1 source=("https://github.com/westes/flex/releases/download/v$version/$name-$version.tar.gz") build() { cd "$SRC"/$name-$version if [ "$USEBOOTSTRAP" = "yes" ]; then cat > config.cache << EOF ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes EOF BUILDFLAGS="$BUILDFLAGS --cache-file=config.cache" fi ./configure $BUILDFLAGS \ --prefix=/usr \ --disable-nls make make DESTDIR="$PKG" install ln -sf flex "$PKG"/usr/bin/lex }