* Port some Pyhon packages to build/installer * python-soundfile: fix broken wheel tag setup was trying to reimplement it, but doesn't know about mingw python. this is all not needed nowadays, setuptools handles wheels.
59 lines
1.8 KiB
Bash
59 lines
1.8 KiB
Bash
# Maintainer: Sarah Ottinger <schalaalexiazeal@gmail.com>
|
|
|
|
_realname=librosa
|
|
pkgbase=mingw-w64-python-${_realname}
|
|
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
|
|
pkgver=0.9.2
|
|
pkgrel=5
|
|
pkgdesc='Python library for music and audio analysis (mingw-w64)'
|
|
arch=('any')
|
|
mingw_arch=('mingw64' 'ucrt64')
|
|
url="https://librosa.org/"
|
|
msys2_references=(
|
|
'purl: pkg:pypi/librosa'
|
|
)
|
|
license=('spdx:ISC')
|
|
depends=(
|
|
"${MINGW_PACKAGE_PREFIX}-python"
|
|
"${MINGW_PACKAGE_PREFIX}-python-audioread"
|
|
"${MINGW_PACKAGE_PREFIX}-python-decorator"
|
|
"${MINGW_PACKAGE_PREFIX}-python-joblib"
|
|
"${MINGW_PACKAGE_PREFIX}-python-matplotlib"
|
|
"${MINGW_PACKAGE_PREFIX}-python-numba"
|
|
"${MINGW_PACKAGE_PREFIX}-python-resampy"
|
|
"${MINGW_PACKAGE_PREFIX}-python-scikit-learn"
|
|
"${MINGW_PACKAGE_PREFIX}-python-scipy"
|
|
"${MINGW_PACKAGE_PREFIX}-python-six"
|
|
"${MINGW_PACKAGE_PREFIX}-python-soundfile"
|
|
"${MINGW_PACKAGE_PREFIX}-python-pooch"
|
|
)
|
|
makedepends=(
|
|
"${MINGW_PACKAGE_PREFIX}-python-setuptools"
|
|
"${MINGW_PACKAGE_PREFIX}-python-build"
|
|
"${MINGW_PACKAGE_PREFIX}-python-installer"
|
|
)
|
|
source=("https://github.com/librosa/librosa/archive/$pkgver/${_realname}-$pkgver.tar.gz")
|
|
sha256sums=('6bb5d527680c2ca733407dc69bfddfbe5cc8cc530b997c20aa288ede222d9d47')
|
|
|
|
prepare() {
|
|
cd "$srcdir"
|
|
rm -rf python-build-${MSYSTEM} | true
|
|
cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}"
|
|
}
|
|
|
|
build() {
|
|
msg "Python build for ${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.md "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE.md"
|
|
}
|