* python-sphinx-alabaster-theme: Update to 0.7.12 * python-sphinx_rtd_theme: Update to 0.4.2 * python-msgpack: Update to 0.6.0 * python-beautifulsoup4: Update to 4.7.1 * python-soupsieve: Update to 1.7.2 * python-wrapt: Update to 1.11.1
77 lines
2.2 KiB
Bash
77 lines
2.2 KiB
Bash
# Maintainer: Alexey Pavlov <Alexpux@gmail.com>
|
|
|
|
_realname=sphinx_rtd_theme
|
|
pkgbase=mingw-w64-python-${_realname}
|
|
pkgname=("${MINGW_PACKAGE_PREFIX}-python2-${_realname}" "${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
|
|
pkgver=0.4.2
|
|
pkgrel=1
|
|
pkgdesc="Python Sphinx Read The Docs Theme (mingw-w64)"
|
|
arch=('any')
|
|
license=('MIT')
|
|
url='https://github.com/snide/sphinx_rtd_theme'
|
|
makedepends=("${MINGW_PACKAGE_PREFIX}-python2-setuptools"
|
|
"${MINGW_PACKAGE_PREFIX}-python3-setuptools")
|
|
options=('staticlibs')
|
|
source=("https://pypi.org/packages/source/s/${_realname}/${_realname}-${pkgver}.tar.gz")
|
|
sha256sums=('02f02a676d6baabb758a20c7a479d58648e0f64f13e07d1b388e9bb2afe86a09')
|
|
|
|
prepare() {
|
|
cd ${srcdir}
|
|
cp -r ${_realname}-${pkgver} python2-build
|
|
cp -r ${_realname}-${pkgver} python3-build
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}"
|
|
for builddir in python{2,3}-build; do
|
|
pushd ${builddir}
|
|
${MINGW_PREFIX}/bin/${builddir%-build} setup.py build
|
|
popd
|
|
done
|
|
}
|
|
|
|
check() {
|
|
cd "${srcdir}"
|
|
for builddir in python{2,3}-build; do
|
|
pushd ${builddir}
|
|
${MINGW_PREFIX}/bin/${builddir%-build} setup.py test
|
|
popd
|
|
done
|
|
}
|
|
|
|
package_python2-sphinx_rtd_theme() {
|
|
depends=("${MINGW_PACKAGE_PREFIX}-python2")
|
|
|
|
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
|
|
|
|
install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python2-${_realname}/COPYING"
|
|
}
|
|
|
|
package_python3-sphinx_rtd_theme() {
|
|
depends=("${MINGW_PACKAGE_PREFIX}-python3")
|
|
|
|
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
|
|
|
|
install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python3-${_realname}/COPYING"
|
|
}
|
|
|
|
package_mingw-w64-i686-python2-sphinx_rtd_theme() {
|
|
package_python2-sphinx_rtd_theme
|
|
}
|
|
|
|
package_mingw-w64-i686-python3-sphinx_rtd_theme() {
|
|
package_python3-sphinx_rtd_theme
|
|
}
|
|
|
|
package_mingw-w64-x86_64-python2-sphinx_rtd_theme() {
|
|
package_python2-sphinx_rtd_theme
|
|
}
|
|
|
|
package_mingw-w64-x86_64-python3-sphinx_rtd_theme() {
|
|
package_python3-sphinx_rtd_theme
|
|
}
|