summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 74fddecab7b682ac9aa19331e6372c7e825336c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: Rich Li <rich at dranek com>
# Contributor: lestb <tkhdlstfl dot l plus aur at gmail dot com>
# Contributor: Sebastien Binet <binet@lblbox>
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}"
}