kind: autotools

sources:
- kind: git
  url: upstream:binutils-tarball
  track: binutils-2.25
  ref: 5500a97a2ad1735db5b35bc51cfb825c1f4c38df

depends:
- filename: gnu-toolchain/stage2.bst
  type: build
- gnu-toolchain/fhs-dirs.bst
- gnu-toolchain/glibc.bst
- gnu-toolchain/zlib.bst

environment:
  PATH: /usr/bin:/bin:/usr/sbin:/sbin:/tools/bin:/tools/sbin

config:

  configure-commands:
  - |
    ./configure --prefix="%{prefix}" --disable-nls --disable-werror \
      --with-system-zlib \
      --build=%{target}  \
      --host=%{target}   \
      --target=%{target}

  strip-commands:
  - |
    %{stage3-strip-binaries}

public:
  bst:
    split-rules:
      runtime:
        (=): []

      devel:
        (>):
        - |
          %{bindir}/*
        - |
          %{prefix}/%{target}/**
