45 lines
1.6 KiB
Bash
45 lines
1.6 KiB
Bash
# Maintainer: Konstantin Podsvirov <konstantin@podsvirov.su>
|
|
|
|
_realname=pygit2
|
|
pkgbase=mingw-w64-python-${_realname}
|
|
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
|
|
pkgver=1.18.2
|
|
pkgrel=1
|
|
pkgdesc='Python bindings for libgit2 (mingw-w64)'
|
|
arch=('any')
|
|
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
|
|
msys2_references=(
|
|
'archlinux: python-pygit2'
|
|
'gentoo: dev-python/pygit2'
|
|
'purl: pkg:pypi/pygit2'
|
|
)
|
|
msys2_repository_url='https://github.com/libgit2/pygit2/'
|
|
msys2_changelog_url='https://github.com/libgit2/pygit2/blob/master/CHANGELOG.md'
|
|
url='https://www.pygit2.org/'
|
|
license=('spdx:GPL-2.0-only')
|
|
depends=("${MINGW_PACKAGE_PREFIX}-libgit2"
|
|
"${MINGW_PACKAGE_PREFIX}-python"
|
|
"${MINGW_PACKAGE_PREFIX}-python-cffi")
|
|
makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
|
|
"${MINGW_PACKAGE_PREFIX}-python-installer"
|
|
"${MINGW_PACKAGE_PREFIX}-python-setuptools"
|
|
"${MINGW_PACKAGE_PREFIX}-cc")
|
|
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz")
|
|
sha256sums=('eca87e0662c965715b7f13491d5e858df2c0908341dee9bde2bc03268e460f55')
|
|
|
|
build() {
|
|
cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}"
|
|
python -m build --wheel --skip-dependency-check --no-isolation
|
|
}
|
|
|
|
package() {
|
|
cd "python-build-${MSYSTEM}"
|
|
MSYS2_ARG_CONV_EXCL="--prefix=" \
|
|
python -m installer --prefix=${MINGW_PREFIX} \
|
|
--destdir="${pkgdir}" dist/*.whl
|
|
|
|
install -Dm644 COPYING "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE"
|
|
}
|
|
|
|
# vim: ts=2 sw=2 et:
|