app=pkgconf
version=1.7.3
build=2sml
homepage="https://git.sr.ht/~kaniini/pkgconf"
download="https://distfiles.dereferenced.org/pkgconf/pkgconf-$version.tar.xz"
desc="Drop-in replacement for the bloated pkg-config utility"
requires="musl"

build() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --disable-static \
    --with-pkg-config-dir=/lib/pkgconfig

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  ( cd $pkg/bin ; ln -sf pkgconf pkg-config )

  mkfinalpkg
}

sha512sums="
37b6c4f9f3b93970e35b6970fde22fbbde65e7fa32a5634b3fdfc25cc1f33843582722ad13d9a8e96fd6768406fcbe86bf5feb76996ddd0bb66d6ff91e65f0b6  pkgconf-1.7.3.tar.xz
"
