# Maintainer: winnie _py="python2" _eggname="bintrees" pkgname=${_py}-${_eggname} pkgver=2.2.0 pkgrel=1 pkgdesc="Package provides Binary-, RedBlack- and AVL-Trees in Python and Cython." arch=('any') url="https://pypi.python.org/pypi/bintrees/" license=('MIT') depends=("${_py}") makedepends=("${_py}-setuptools") optdepends=("cython2: usage of C implementation") options=(!emptydirs) source=(${_eggname}-v${pkgver}.tar.gz::https://github.com/mozman/bintrees/archive/v${pkgver}.tar.gz) provides=('python2-bintrees') sha256sums=('8e17a8d6fcfb0ec9dae611583f1d2879a84a62db58e1e533b414bbf8c4e929d7') package() { cd "${srcdir}/${_eggname}-${pkgver}" ${_py} setup.py install --root="$pkgdir" || return 1 install -Dpm644 "LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" msg "Install successful." }