kind: autotools

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

sources:
- kind: git
  url: upstream:libffi
  track: v3.2.1
  ref: 20562ac0427c3578250d04c6e34fb0127d4551cf

config:
  install-commands:
  - make DESTDIR="%{install-root}"/ install
  - mkdir -p "%{install-root}"/usr/include
  - cp "$(sh ./config.guess)"/include/ffi.h "%{install-root}"/usr/include/
  - cp "$(sh ./config.guess)"/include/ffitarget.h "%{install-root}"/usr/include/
