| # Maintainer: gym603 <gui_yuan_miao@163.com> |
| |
| _realname=keras_preprocessing |
| pkgbase=mingw-w64-python-${_realname} |
| pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") |
| provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") |
| conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") |
| replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") |
| pkgver=1.1.2 |
| pkgrel=1 |
| pkgdesc="Utilities for working with image data, text data, and sequence data. (mingw-w64)" |
| arch=('any') |
| mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64') |
| url="https://github.com/keras-team/keras-preprocessing" |
| license=('MIT') |
| depends=("${MINGW_PACKAGE_PREFIX}-python" |
| "${MINGW_PACKAGE_PREFIX}-python-numpy" |
| "${MINGW_PACKAGE_PREFIX}-python-six") |
| makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") |
| _archive=${_realname/_/-}-${pkgver} |
| source=(${_archive}.tar.gz::https://github.com/keras-team/keras-preprocessing/archive/${pkgver}.tar.gz) |
| sha256sums=('8808fa9f0f539f096f9be426799f586540215784df1c25898618d73ed674fc37') |
| |
| prepare() { |
| cd "${srcdir}" |
| rm -rf "python-build-${CARCH}" | true |
| cp -r "${_archive}" "python-build-${CARCH}" |
| } |
| |
| build() { |
| cd "${srcdir}/python-build-${CARCH}" |
| ${MINGW_PREFIX}/bin/python setup.py --quiet build |
| } |
| |
| package() { |
| cd "${srcdir}/python-build-${CARCH}" |
| |
| MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ |
| ${MINGW_PREFIX}/bin/python setup.py --quiet install --prefix=${MINGW_PREFIX} --root="${pkgdir}" -O1 |
| |
| install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE" |
| } |