summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 439f225618c717d5125bb1ac2f40cfe8b4073854 (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
# Maintainer: lestb <tkhdlstfl dot l plus aur at gmail dot com>
# Contributor: Sebastien Binet <binet@lblbox>
# Package Repository: https://github.com/mij-aur-packages/python2-lineprofiler
pkgname=python2-lineprofiler
pkgver=1.0
pkgrel=2
pkgdesc="Line-by-line profiler."
url="http://pypi.python.org/pypi/line_profiler"
arch=('i686' 'x86_64')
license=('BSD')
depends=( 'python2' )
makedepends=('cython2')
source=(http://pypi.python.org/packages/source/l/line_profiler/line_profiler-$pkgver.tar.gz)
md5sums=('2f8352acfedf83f701a564583db5e14d')

build() {
  cd "${srcdir}/line_profiler-${pkgver}"
  python2 setup.py build
}

package() {
  license_dir="${pkgdir}/usr/share/licenses/${pkgname}"
  cd "${srcdir}/line_profiler-${pkgver}"
  python2 setup.py install --prefix=/usr --root="${pkgdir}"
  install -d ${license_dir}
  install -m644 LICENSE{,_Python}.txt "${license_dir}"
  mv "${pkgdir}"/usr/bin/kernprof{,2}
}