24 lines
573 B
Plaintext
24 lines
573 B
Plaintext
# Description: Fast Lexical Analyzer Generator
|
|
# URL: https://github.com/westes/flex
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
|
|
name=flex
|
|
version=2.6.4
|
|
release=2
|
|
source=(https://github.com/westes/flex/releases/download/v$version/$name-$version.tar.gz)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
CFLAGS="$CFLAGS -D_GNU_SOURCE" \
|
|
./configure --prefix=/usr --disable-nls
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
ln -sf flex $PKG/usr/bin/lex
|
|
ln -sf flex.1.gz $PKG/usr/share/man/man1/lex.1.gz
|
|
|
|
rm -r $PKG/usr/share/{info,doc}
|
|
}
|