repo/flex/PACKAGE

23 lines
376 B
Text
Raw Permalink Normal View History

#!/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
./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
make
make install DESTDIR="$1"
2021-06-30 00:54:32 +03:00
ln -s flex "$1/usr/bin/lex"
}
pkg_uninstall() {
make uninstall
}