kind: manual
depends:
- gnu-toolchain.bst
- core/perl.bst
- core/autoconf.bst
- core/automake.bst
- core/file.bst
- core/gettext-tarball.bst
- core/texinfo-tarball.bst
sources:
- kind: git
  url: upstream:flex
  track: baserock/build-essential
  ref: de10f98e8a2dc2a021796811490d0f30c3cd90bf
config:
  configure-commands:
  - autoreconf -ivf
  - ./configure --prefix="%{prefix}"
  build-commands:
  - make dist_doc_DATA=
  install-commands:
  - make dist_doc_DATA= DESTDIR="%{install-root}" install
  - ln -s libfl.a "%{install-root}%{prefix}/lib/libl.a"
  - echo "#!%{prefix}/bin/sh" >"%{install-root}%{prefix}/bin/lex"
  - echo 'exec '"%{prefix}"'/bin/flex -l "$@"' >>"%{install-root}%{prefix}/bin/lex"
  - chmod 755 "%{install-root}%{prefix}/bin/lex"
