Files
MSYS2-packages/python-patiencediff/PKGBUILD
T
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

42 lines
1023 B
Bash

# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
_realname=patiencediff
pkgname="python-${_realname}"
pkgver=0.2.15
pkgrel=5
pkgdesc='Patiencediff Python and C implementations'
arch=('i686' 'x86_64')
url='https://github.com/breezy-team/patiencediff'
msys2_references=(
"purl: pkg:pypi/patiencediff"
)
license=('spdx:GPL-2.0-or-later')
depends=('python')
makedepends=(
'python-devel'
'gcc'
"python-setuptools"
"python-build"
"python-installer"
)
source=("${_realname}-${pkgver}.tar.gz"::https://github.com/breezy-team/patiencediff/archive/v${pkgver}.tar.gz)
sha256sums=('77b905e2f02029244a46b99ac3682e4a50ccc2f7e0cc66c1a025282328647b5d')
prepare(){
cd "${srcdir}/${_realname}-${pkgver}"
}
build() {
cd "${srcdir}/${_realname}-${pkgver}"
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "${srcdir}/${_realname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}