# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-pkgconfig
pkgver=1.5.5
pkgrel=4
pkgdesc="Python interface for the pkg-config command line tool"
url="https://github.com/matze/pkgconfig"
arch="noarch"
license="MIT"
depends="
	pkgconf
	python3
	"
makedepends="py3-setuptools"
# GitHub tarballs depend on poetry build system which can't be used for distro packaging
subpackages="$pkgname-pyc"
source="https://pypi.python.org/packages/source/p/pkgconfig/pkgconfig-$pkgver.tar.gz"
options="!check" # No tests in PyPi package
builddir="$srcdir/pkgconfig-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
ffa838d0146125c4158b747b619cc5eed41da0e2f04664a4db89909a486922120a0e1779f99dfcda0da3e98b8770c57b638a9c7bc5994cd8102aa3cf990905b0  pkgconfig-1.5.5.tar.gz
"
