repo/flex/PACKAGE

22 lines
376 B
Bash

#!/bin/sh
pkg_ver="2.6.4"
pkg_install() {
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 \
--prefix=/usr \
ac_cv_func_malloc_0_nonnull=yes \
ac_cv_func_realloc_0_nonnull=yes
make
make install DESTDIR="$1"
ln -s flex "$1/usr/bin/lex"
}
pkg_uninstall() {
make uninstall
}