# Description: Simple .INI file parser library written in C
# URL: https://github.com/benhoyt/inih
# Maintainer: CRUX System Team, core-ports at crux dot nu

name=inih
version=58
release=1
source=(https://github.com/benhoyt/inih/archive/r$version/$name-$version.tar.gz)

build() {
	meson setup build $name-r$version \
		--prefix=/usr \
		--buildtype=release \
		--wrap-mode nodownload \
		-D b_lto=true \
		-D b_pie=true \
		-D with_INIReader=true \
		-D distro_install=true

	meson compile -C build -j ${JOBS:-1}
	DESTDIR=$PKG meson install -C build
}
