# Maintainer: Rich Li # Contributor: lestb # Contributor: Sebastien Binet pkgname=python-lineprofiler pkgver=2.0 pkgrel=1 pkgdesc="Line-by-line profiler" url="http://pypi.python.org/pypi/line_profiler" arch=('i686' 'x86_64') license=('BSD') depends=('python-setuptools') makedepends=('cython') source=("https://github.com/rkern/line_profiler/archive/$pkgver.tar.gz") md5sums=('712a2a08b15e51fcbaf4dbf74f4817f2') build() { cd "${srcdir}/line_profiler-${pkgver}" python setup.py build } # # Doesn't work # check() { # cd "${srcdir}/line_profiler-${pkgver}" # python -m unittest discover -v tests # } package() { cd "${srcdir}/line_profiler-${pkgver}" python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 install -d "${pkgdir}/usr/share/licenses/${pkgname}" install -m644 LICENSE{,_Python}.txt "${pkgdir}/usr/share/licenses/${pkgname}" }