51 lines
1.9 KiB
Bash
51 lines
1.9 KiB
Bash
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
|
|
|
|
_realname=hunter
|
|
pkgbase=mingw-w64-python-${_realname}
|
|
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
|
|
pkgver=3.9.0
|
|
pkgrel=1
|
|
pkgdesc="Hunter is a flexible code tracing toolkit (mingw-w64)"
|
|
arch=('any')
|
|
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
|
|
url='https://python-hunter.readthedocs.io/'
|
|
msys2_repository_url='https://github.com/ionelmc/python-hunter'
|
|
msys2_references=(
|
|
'purl: pkg:pypi/hunter'
|
|
)
|
|
license=('spdx:BSD-2-Clause')
|
|
depends=("${MINGW_PACKAGE_PREFIX}-python-colorama"
|
|
"${MINGW_PACKAGE_PREFIX}-python-manhole")
|
|
optdepends=("${MINGW_PACKAGE_PREFIX}-gdb: for remote support")
|
|
makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
|
|
"${MINGW_PACKAGE_PREFIX}-python-installer"
|
|
"${MINGW_PACKAGE_PREFIX}-python-setuptools"
|
|
"${MINGW_PACKAGE_PREFIX}-python-setuptools-scm"
|
|
"${MINGW_PACKAGE_PREFIX}-cython"
|
|
"${MINGW_PACKAGE_PREFIX}-cc")
|
|
checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest-benchmark"
|
|
"${MINGW_PACKAGE_PREFIX}-python-pytest"
|
|
#"${MINGW_PACKAGE_PREFIX}-python-process-tests"
|
|
#"${MINGW_PACKAGE_PREFIX}-python-virtualenv"
|
|
)
|
|
options=('!strip')
|
|
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz")
|
|
sha512sums=('b970f59fc8cf847785cdd8737ed13c1b88b7ac0f8130c94b3f3daa36d4e1eb9b0dc8413a7d03d1df398bcc2a182685460acccecd6ca9537da654bf283a1fd31f')
|
|
|
|
build() {
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION="${pkgver}"
|
|
|
|
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 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE"
|
|
}
|