summaryrefslogtreecommitdiff
path: root/elements/core/flex.bst
blob: aceeda59778dc48ef8b5f739c011814385408920 (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
27
28
29
30
31
32
33
34
kind: manual

depends:
- filename: gnu-toolchain.bst
  type: build
- filename: core/autoconf.bst
  type: build
- filename: core/automake.bst
  type: build
- filename: core/file.bst
  type: build
- filename: core/gettext-tarball.bst
  type: build
- filename: core/texinfo-tarball.bst
  type: build

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"