Files
MSYS2-packages/python-pkgconfig/PKGBUILD
Christoph Reiter a0902f1e21 Use pypi PURLs instead of plain pypi names
This allows us to include a version and we already use PURL
for other things, so might as well remove the pypi special case.

Normalize the names, since that is required for PURLs.
2025-02-16 20:58:55 +01:00

37 lines
809 B
Bash

pkgname=python-pkgconfig
pkgver=1.5.5
pkgrel=6
pkgdesc='Python module to interface with the pkg-config command line tool'
arch=(any)
url='https://github.com/matze/pkgconfig'
msys2_references=(
"purl: pkg:pypi/pkgconfig"
)
license=('spdx:MIT')
depends=(
"python"
"pkgconf"
)
makedepends=(
"python-poetry-core"
"python-build"
"python-installer"
)
source=(https://pypi.io/packages/source/p/pkgconfig/pkgconfig-$pkgver.tar.gz)
sha256sums=('deb4163ef11f75b520d822d9505c1f462761b4309b1bb713d08689759ea8b899')
build() {
cd pkgconfig-$pkgver
export GIT_DIR="$(pwd)"
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd pkgconfig-$pkgver
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}