mingw-w64-python-keras_applications: Update to 1.0.7

This commit is contained in:
Yuanmiao Gui
2019-03-08 15:39:09 +08:00
parent 7ab5285388
commit a41c1ff6a3

View File

@@ -3,27 +3,28 @@
_realname=keras_applications
pkgbase=mingw-w64-python-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-python2-${_realname}" "${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
pkgver=1.0.6
pkgver=1.0.7
pkgrel=1
pkgdesc="Reference implementations of popular deep learning models. (mingw-w64)"
arch=('any')
url="https://github.com/keras-team/keras-applications"
license=('MIT')
_archive=${_realname/_/-}-${pkgver}
source=(${_archive}.tar.gz::https://github.com/keras-team/keras-applications/archive/${pkgver}.tar.gz)
sha256sums=('2CB412C97153160EC267B238E958D281AC3532B139CAB42045C2D7086A157C21')
_deps=('numpy' 'h5py')
makedepends=("${MINGW_PACKAGE_PREFIX}-python3-setuptools"
"${MINGW_PACKAGE_PREFIX}-python2-setuptools")
_archive=${_realname/_/-}-${pkgver}
source=(${_archive}.tar.gz::https://github.com/keras-team/keras-applications/archive/${pkgver}.tar.gz)
sha256sums=('8580A885C8ABE4BF8429CB0E551F23E79B14EDA73D99138CFA1D355968DD4B0A')
_deps=('numpy' 'h5py')
build() {
cd "${srcdir}"
rm -rf python{2,3}-build
for builddir in python{2,3}-build; do
msg2 "Building for ${CARCH} ${builddir%-build} ..."
cp -r ${_archive} ${builddir}
pushd $builddir
${MINGW_PREFIX}/bin/${builddir%-build} setup.py build
${MINGW_PREFIX}/bin/${builddir%-build} setup.py --quiet build
popd
done
}
@@ -33,7 +34,7 @@ package_python3-keras_applications() {
cd "${srcdir}/python3-build"
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
${MINGW_PREFIX}/bin/python3 setup.py install --prefix=${MINGW_PREFIX} --root="${pkgdir}" -O1
${MINGW_PREFIX}/bin/python3 setup.py --quiet install --prefix=${MINGW_PREFIX} --root="${pkgdir}" -O1
install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python3-${_realname}/LICENSE"
}
@@ -43,7 +44,7 @@ package_python2-keras_applications() {
cd "${srcdir}/python2-build"
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
${MINGW_PREFIX}/bin/python2 setup.py install --prefix=${MINGW_PREFIX} --root="${pkgdir}" -O1
${MINGW_PREFIX}/bin/python2 setup.py --quiet install --prefix=${MINGW_PREFIX} --root="${pkgdir}" -O1
install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python2-${_realname}/LICENSE"
}