port to build/installer drop install file - the warning isn't msys2 specific, that's how the package works.
47 lines
1.1 KiB
Bash
47 lines
1.1 KiB
Bash
# Maintainer: Alexandre Ferreira < alex.jorge.m [at] gmail.com >
|
|
|
|
_pyname=PyYAML
|
|
_realname=yaml
|
|
pkgbase=python-${_realname}
|
|
pkgname=("python-${_realname}")
|
|
pkgver=6.0
|
|
pkgrel=1
|
|
pkgdesc='Python bindings for YAML, using fast libYAML library'
|
|
arch=('i686' 'x86_64')
|
|
url='https://pyyaml.org/'
|
|
license=('spdx:MIT')
|
|
depends=('python' 'libyaml')
|
|
makedepends=(
|
|
'python-build'
|
|
'python-installer'
|
|
'cython'
|
|
'python-setuptools'
|
|
'python-wheel'
|
|
'libyaml-devel'
|
|
'python-devel'
|
|
'gcc'
|
|
)
|
|
source=("https://pypi.org/packages/source/${_pyname::1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
|
|
sha256sums=('68fb519c14306fec9720a2a5b45bc9f0c8d1b9c72adf45c37baedfcd949c35a2')
|
|
|
|
build() {
|
|
cd "${_pyname}-${pkgver}"
|
|
|
|
python -m build --wheel --skip-dependency-check --no-isolation
|
|
}
|
|
|
|
check() {
|
|
cd "${_pyname}-${pkgver}"
|
|
|
|
python setup.py test
|
|
}
|
|
|
|
package() {
|
|
cd "${_pyname}-${pkgver}"
|
|
|
|
python -m installer --destdir="${pkgdir}" dist/*.whl
|
|
|
|
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/python-${_realname}/COPYING"
|
|
install -Dm644 CHANGES README.md -t "${pkgdir}/usr/share/doc/python-${_realname}"
|
|
}
|