kind: autotools

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/help2man.bst
  type: build
- filename: core/git-minimal.bst
  type: build
- filename: core/patch.bst
  type: build
- filename: core/texinfo-tarball.bst
  type: build
- filename: core/xz.bst
  type: build
- filename: core/mini-utils.bst
  type: build

sources:
- kind: git
  url: upstream:libtool
  track: v2.4.6
  ref: f09d00cbcf924c378573163e244fffeb8d28005f
  submodules:
    gnulib:
      url: upstream:gnulib

config:
  configure-commands:
  # If we don't run `./boostrap` with git, this script will look
  # for the .tarball-version file to set up some versioning.
  - echo "2.4.6" > .tarball-version
  - export NOCONFIGURE=1; export MAKEFLAGS="-j 1"; ./bootstrap --skip-po --no-git --gnulib-srcdir=gnulib
  - ./configure --prefix="%{prefix}" --sysconfdir=/etc --localstatedir=/var
