name=pkgconf
version=3.0.4
release=1
desc="Build flag helper, replacing pkg-config"
url="https://github.com/pkgconf/pkgconf"
license="ISC"
depend="glibc"
makedepend="meson ninja"
source="https://distfiles.ariadne.space/pkgconf/pkgconf-3.0.4.tar.xz"
sha256="SKIP"

build() {
	unset LD_LIBRARY_PATH
	cd "pkgconf-3.0.4"
	meson setup build \
		--prefix=/usr \
		--libdir=/usr/lib \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--buildtype=release \
		--wrap-mode=nodownload \
		-Db_lto=true
	ninja -C build -j"$JOBS"
}

package() {
	unset LD_LIBRARY_PATH
	cd "pkgconf-3.0.4"
	DESTDIR="$pkgdir" ninja -C build install
}
