Files
MSYS2-packages/python-dulwich/PKGBUILD
Christoph Reiter 9ac1d9be6b python-dulwich: Port to build/installer + cleanups
No longer requires certifi
Clarify the license
2022-12-17 12:18:37 +01:00

43 lines
1003 B
Bash

# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
_realname=dulwich
pkgname="python-${_realname}"
pkgver=0.20.50
pkgrel=2
pkgdesc='Pure-Python implementation of the Git file formats and protocols'
arch=('any')
url='https://www.dulwich.io'
license=('spdx:Apache-2.0 OR GPL-2.0-or-later')
depends=(
'python'
'python-urllib3'
)
makedepends=(
'python-setuptools'
'python-devel'
'gcc'
"python-wheel"
"python-build"
"python-installer"
)
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz")
sha256sums=('50a941796b2c675be39be728d540c16b5b7ce77eb9e1b3f855650ece6832d2be')
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"
}