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.
51 lines
1.9 KiB
Bash
51 lines
1.9 KiB
Bash
# Maintainer: Biswapriyo Nath <nathbappai@gmail.com>
|
|
|
|
_realname=e3-core
|
|
pkgbase=mingw-w64-python-${_realname}
|
|
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
|
|
pkgver=22.6.0
|
|
pkgrel=2
|
|
pkgdesc="E3 core. Tools and library for building and testing software (mingw-w64)"
|
|
arch=('any')
|
|
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
|
|
url="https://github.com/AdaCore/e3-core"
|
|
msys2_references=(
|
|
'purl: pkg:pypi/e3-core'
|
|
'aur: python-e3-core'
|
|
'gentoo: dev-ada/e3-core'
|
|
)
|
|
license=('spdx:GPL-3.0-only')
|
|
depends=("${MINGW_PACKAGE_PREFIX}-python"
|
|
"${MINGW_PACKAGE_PREFIX}-python-colorama"
|
|
"${MINGW_PACKAGE_PREFIX}-python-dateutil"
|
|
"${MINGW_PACKAGE_PREFIX}-python-packaging"
|
|
"${MINGW_PACKAGE_PREFIX}-python-psutil"
|
|
"${MINGW_PACKAGE_PREFIX}-python-requests"
|
|
"${MINGW_PACKAGE_PREFIX}-python-requests-cache"
|
|
"${MINGW_PACKAGE_PREFIX}-python-requests-toolbelt"
|
|
"${MINGW_PACKAGE_PREFIX}-python-setuptools"
|
|
"${MINGW_PACKAGE_PREFIX}-python-stevedore"
|
|
"${MINGW_PACKAGE_PREFIX}-python-tqdm"
|
|
"${MINGW_PACKAGE_PREFIX}-python-yaml")
|
|
makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
|
|
"${MINGW_PACKAGE_PREFIX}-python-installer")
|
|
options=(!strip)
|
|
source=("https://github.com/AdaCore/e3-core/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz")
|
|
sha256sums=('981e8fa6fbac2ef657febf3c25f60e6220807ce9876fcb812658b4fee3f9c8e3')
|
|
|
|
build() {
|
|
cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}"
|
|
${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/python-build-${MSYSTEM}"
|
|
|
|
MSYS2_ARG_CONV_EXCL="--prefix=" \
|
|
${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \
|
|
--destdir="${pkgdir}" dist/*.whl
|
|
|
|
install -Dm644 -t "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}" \
|
|
"${srcdir}/${_realname}-${pkgver}/COPYING3"
|
|
}
|