summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2b639f16220cfb990c7fddccf6e413f4689a004a (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
34
35
36
pkgbase=python-lifelines
pkgname=('python-lifelines' 'python2-lifelines')
pkgver=0.8.0
pkgrel=1
pkgdesc="Survival analysis in Python"
url="http://lifelines.readthedocs.org"
arch=('i686' 'x86_64')
license=('custom')
makedepends=('python-setuptools' 'python2-setuptools')
options=('!buildflags')
source=("https://github.com/CamDavidsonPilon/lifelines/archive/v${pkgver}.tar.gz")
md5sums=('62d37d58cfd489307dbb9b9edf6114a1')

build() {
  cp -r "${srcdir}"/lifelines-$pkgver "${srcdir}"/lifelines-$pkgver-py2
  
  cd "${srcdir}"/lifelines-$pkgver
  python setup.py build

  cd "${srcdir}"/lifelines-$pkgver-py2
  python2 setup.py build
} 

package_python-lifelines() {
  depends=('python-scipy' 'python-pandas')

  cd "${srcdir}"/lifelines-$pkgver
  python setup.py install --root="${pkgdir}"
}

package_python2-lifelines() {
  depends=('python2-scipy' 'python2-pandas')

  cd "${srcdir}"/lifelines-$pkgver-py2
  python2 setup.py install --root="${pkgdir}"
}