Files
MSYS2-packages/python-wcwidth/PKGBUILD
Alex Ferreira 5d8f59096f Add ansible 2.9.7 (#1945)
* ansible: add pkgbuild

* ansible: fix: add python-yaml and python-jinja dependencies

* ansible: fix: add libcrypt headers for cython dependency

* ansible: fix: add libcrypt headers for python-yaml dependency

* ansible: fix: isolate i686 and x86_64 builds

* Auto stash before rebase of "alex1a/feature/ansible-pkg"

* ansible: fix: remove unused dependencies

* ansible: fix: remove mingw unused variables; change workaround about tarball symbolic links; edit some wrong installation directories
2020-06-23 08:12:40 +03:00

37 lines
1.0 KiB
Bash

# Maintainer: Alexandre Ferreira < alex.jorge.m [at] gmail.com >
_realname=wcwidth
pkgbase=python-${_realname}
pkgname=("python-${_realname}")
pkgver=0.1.9
pkgrel=1
pkgdesc='Measures number of Terminal column cells of wide-character codes'
url='https://github.com/jquast/wcwidth'
arch=('i686' 'x86_64')
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
#checkdepends=("python-tox")
source=("${_realname}-${pkgver}.tar.gz"::"https://github.com/jquast/${_realname}/archive/${pkgver}.tar.gz")
sha256sums=('e97f34ae353abada7ebc2d11e4bb3c53e38411dd53df2ec467c997d352d2e137')
prepare() {
rm -rf python-build-${CARCH} | true
cp -r "${_realname}-${pkgver}" "python-build-${CARCH}"
}
build() {
cd "${srcdir}/python-build-${CARCH}"
/usr/bin/python setup.py build
}
#check() {
# cd ${srcdir}/python-build-${CARCH}
# tox
#}
package() {
cd "${srcdir}/python-build-${CARCH}"
/usr/bin/python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/python-${_realname}/LICENSE"
}