summaryrefslogtreecommitdiff
path: root/elements/core/flex.bst
blob: 469aaedf56b8867d168f7c52f8438730948ad226 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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"