blob: 2b0f07b3fdb63bf0f18f03cd12bf8e59c144b8cd (
plain)
1 # Description: Fast Lexical Analyzer Generator
2 # URL: https://github.com/westes/flex
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4
5 name=flex
6 version=2.6.4
7 release=2
8 source=(https://github.com/westes/flex/releases/download/v$version/$name-$version.tar.gz)
9
10 build() {
11 cd $name-$version
12
13 CFLAGS="$CFLAGS -D_GNU_SOURCE" \
14 ./configure --prefix=/usr --disable-nls
15
16 make
17 make DESTDIR=$PKG install
18
19 ln -sf flex $PKG/usr/bin/lex
20 ln -sf flex.1.gz $PKG/usr/share/man/man1/lex.1.gz
21
22 rm -r $PKG/usr/share/{info,doc}
23 }
|