add pyfdt 0.3 (#24617)
Signed-off-by: Joel Holdsworth <jholdsworth@nvidia.com>
This commit is contained in:
parent
c8f187c9bb
commit
e6f8c0bc00
34
mingw-w64-python-pyfdt/PKGBUILD
Normal file
34
mingw-w64-python-pyfdt/PKGBUILD
Normal file
@ -0,0 +1,34 @@
|
||||
# Maintainer: Joel Holdsworth <jholdsworth@nvidia.com>
|
||||
|
||||
_realname=pyfdt
|
||||
pkgbase=mingw-w64-python-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
|
||||
pkgver=0.3
|
||||
pkgrel=1
|
||||
pkgdesc="Flattened Device Tree Parser for Python (mingw-w64)"
|
||||
arch=('any')
|
||||
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
|
||||
url="https://github.com/superna9999/pyfdt"
|
||||
msys2_references=(
|
||||
'purl: pkg:pypi/pyfdt'
|
||||
)
|
||||
license=('spdx:Apache-2.0')
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-python")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-installer"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-setuptools")
|
||||
source=("https://pypi.python.org/packages/source/p/${_realname}/${_realname}-${pkgver}.tar.gz")
|
||||
sha256sums=('61601c2005ff394a25a6c84c6da2088bbf888328038400d27e4eeb1b04b9f4f0')
|
||||
|
||||
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
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user