kind: manual
description: Lua regular expression library - PCRE build only
depends:
- python2-core.bst
- tools.bst
- morph-utils.bst
- pcre-utils.bst
- trove/trove/lua.bst
sources:
- kind: git
  url: upstream:lrexlib
  track: baserock/morph
  ref: 0524a6e3ab6d50cba63c8642a875e246de53d651
config:
  build-commands:
  - gcc -fPIC -DPIC -DVERSION=\"2.7.2\" -o rex_pcre.so -shared src/common.c src/pcre/lpcre.c
    src/pcre/lpcre_f.c -lpcre
  install-commands:
  - mkdir -p %{install-root}/usr/lib/lua/5.1/
  - cp rex_pcre.so %{install-root}/usr/lib/lua/5.1/
