2021-07-01 20:57:17 +03:00
|
|
|
#!/bin/sh
|
|
|
|
pkg_ver="2.6.4"
|
|
|
|
|
|
|
|
pkg_install() {
|
2021-06-30 00:54:32 +03:00
|
|
|
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
|
2021-07-01 20:57:17 +03:00
|
|
|
|
|
|
|
./configure \
|
2021-06-30 00:54:32 +03:00
|
|
|
--prefix=/usr \
|
|
|
|
ac_cv_func_malloc_0_nonnull=yes \
|
|
|
|
ac_cv_func_realloc_0_nonnull=yes
|
2021-06-30 01:08:42 +03:00
|
|
|
|
2021-07-01 20:57:17 +03:00
|
|
|
make
|
|
|
|
make install DESTDIR="$1"
|
2021-06-30 00:54:32 +03:00
|
|
|
ln -s flex "$1/usr/bin/lex"
|
2021-07-01 20:57:17 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
pkg_uninstall() {
|
|
|
|
make uninstall
|
|
|
|
}
|
|
|
|
|