# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=c-shquote
pkgver=1.1.0
pkgrel=0
pkgdesc="POSIX Shell Compatible Argument Parser"
url="https://github.com/c-util/c-shquote"
arch="all"
license="Apache-2.0 OR LGPL-2.1-or-later"
makedepends="
	c-stdaux-dev~1
	meson
	"
subpackages="$pkgname-dev"
source="https://github.com/c-util/c-shquote/archive/v$pkgver/c-shquote-$pkgver.tar.gz"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
5d11700853b9039b1e9a84c05750cda78647d8d3916bfb32f69ca6fa6cd3e61f6922834b49b39ff4f5782b73ee38e87618e553cf6595cc33a3e345c0371bb602  c-shquote-1.1.0.tar.gz
"
