mirror of
https://github.com/outbackdingo/ports.git
synced 2026-03-20 06:44:12 +00:00
20 lines
399 B
Plaintext
Executable File
20 lines
399 B
Plaintext
Executable File
# description : Utility for generating programs that recognize patterns in text
|
|
|
|
name=flex
|
|
version=2.6.4
|
|
release=1
|
|
source="https://github.com/westes/flex/releases/download/v$version/$name-$version.tar.gz"
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
sed -i "/math.h/a #include <malloc.h>" src/flexdef.h
|
|
|
|
./configure --prefix=/usr --disable-nls
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
ln -sv flex $PKG/usr/bin/lex
|
|
|
|
}
|