kind: autotools
depends:
- foundation.bst
- python-cliapp.bst
- pcre-utils.bst
sources:
- kind: git
  url: upstream:libapr
  track: 1.5.1
  ref: 10835ec9a2d8bb9f7b867d15f29984d29744f028
config:
  configure-commands:
  - ./buildconf
  - |
    ./configure \
      --prefix "%{prefix}" \
      --disable-static \
      --with-installbuilddir=/usr/share/apr-1/build
  install-commands:
    (>):
    - |
      # Install files required for apr-util
      for file in find_apr.m4 apr_common.m4 install.sh gen-build.py \
          get-version.sh config.guess config.sub
      do
        cp build/$file "%{install-root}/%{prefix}"/share/apr-1/build/"$file"
      done
      # Create a symlink in the build directory to the include directory
      ln -sf /usr/include/apr-1 "%{install-root}/%{prefix}"/share/apr-1/build/
