Date: Wednesday, January 20, 2021 @ 23:17:20 Author: alucryd Revision: 406494
move libinih from community to core for xfs-progs Added: libinih/ libinih/trunk/ libinih/trunk/PKGBUILD ----------+ PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) Added: libinih/trunk/PKGBUILD =================================================================== --- libinih/trunk/PKGBUILD (rev 0) +++ libinih/trunk/PKGBUILD 2021-01-20 23:17:20 UTC (rev 406494) @@ -0,0 +1,50 @@ +# Maintainer: Maxime Gauduin <aluc...@archlinux.org> +# Contributor: Alberto Oporto Ames <otrebl...@gmail.com> + +pkgname=libinih +pkgver=52 +pkgrel=2 +pkgdesc='A simple .INI file parser written in C' +arch=(x86_64) +url=https://github.com/benhoyt/inih +license=(BSD) +depends=( + gcc-libs + glibc +) +makedepends=( + git + meson +) +provides=( + libinih.so + libINIReader.so +) +_tag=1e80a47dffbda813604f0913e2ad68c7054c14e4 +source=(git+https://github.com/benhoyt/inih.git#tag=${_tag}) +b2sums=(SKIP) + +prepare() { + cd inih + git cherry-pick -n 32519ea045670fbd9a057a9c48f77d7b473ce53b +} + +pkgver() { + cd inih + git describe --tags | sed 's/^r//' +} + +build() { + arch-meson inih build \ + -Ddefault_library=shared \ + -Ddistro_install=true \ + -Dwith_INIReader=true + meson compile -C build +} + +package() { + DESTDIR="$pkgdir" meson install -C build + install -Dm 644 inih/LICENSE.txt -t "${pkgdir}"/usr/share/licenses/libinih/ +} + +# vim: ts=2 sw=2 et: