From 7a862170e72d7fd0bb253d31d085ce69dcc440fd Mon Sep 17 00:00:00 2001 From: hippoz Date: Wed, 30 Jun 2021 00:54:32 +0300 Subject: [PATCH] add flex package --- flex/Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 flex/Makefile diff --git a/flex/Makefile b/flex/Makefile new file mode 100644 index 0000000..82b1d2d --- /dev/null +++ b/flex/Makefile @@ -0,0 +1,15 @@ +prepare: + wget -O flex.tar.gz https://github.com/westes/flex/releases/download/v2.6.4/flex-2.6.4.tar.gz + tar -xf flex.tar.gz + cd flex +make: + @./configure \ + --prefix=/usr \ + ac_cv_func_malloc_0_nonnull=yes \ + ac_cv_func_realloc_0_nonnull=yes + make +install: + make install DESTDIR="${PREFIX}" + ln -s flex "$1/usr/bin/lex" +uninstall: + make uninstall