APP=pkgconf
VERSION=1.7.3
BUILD=1sml
HOMEPAGE='https://git.sr.ht/~kaniini/pkgconf'
DOWNLOAD='https://distfiles.dereferenced.org/pkgconf/pkgconf-1.7.3.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="" \
    --with-pkg-config-dir=/usr/lib/pkgconfig:/usr/share/pkgconfig:/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
"
