| # Maintainer: Ryuta Suzuki <oroppas@gmail.com> |
| |
| _realname=wcwidth |
| 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=0.2.5 |
| pkgrel=1 |
| pkgdesc="Measures number of Terminal column cells of wide-character codes (mingw-w64)" |
| url="https://github.com/jquast/wcwidth" |
| arch=('any') |
| mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32') |
| license=('MIT') |
| depends=("${MINGW_PACKAGE_PREFIX}-python") |
| makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools") |
| #checkdepends=("${MINGW_PACKAGE_PREFIX}-python-tox") |
| source=(${_realname}-${pkgver}.tar.gz::https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz) |
| sha256sums=('c4d647b99872929fdb7bdcaa4fbe7f01413ed3d98077df798530e5b04f116c83') |
| |
| prepare() { |
| rm -rf python-build-${CARCH} | true |
| cp -r "${_realname}-${pkgver}" "python-build-${CARCH}" |
| } |
| |
| build() { |
| cd ${srcdir}/python-build-${CARCH} |
| ${MINGW_PREFIX}/bin/python setup.py build |
| |
| } |
| |
| #check() { |
| # cd ${srcdir}/python-build-${CARCH} |
| # tox |
| #} |
| |
| package() { |
| cd ${srcdir}/python-build-${CARCH} |
| MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ |
| ${MINGW_PREFIX}/bin/python setup.py install --root=${pkgdir} --prefix=${MINGW_PREFIX} --optimize=1 --skip-build |
| |
| install -Dm644 LICENSE ${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE |
| } |