summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6bfea93a63e05e341903f8caaec845549e045ff9 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Maintainer: Clint Valentine <valentine.clint@gmail.com>

_name=nucleus
pkgbase='python-nucleus'
pkgname=('python-nucleus' 'python2-nucleus')
pkgver=0.1.0
pkgrel=1
pkgdesc=" Python and C++ code for reading and writing genomics data."
arch=('any')
url="https://github.com/google/nucleus"
license=('Apache')
makedepends=(
  'python' 'python-setuptools'
  'python2' 'python2-setuptools')
options=(!emptydirs)
source=("${_name}"-"${pkgver}"::git+https://github.com/google/nucleus.git#commit=073c3c7af4ed0e3f401f8780417e9858f53b401f)
sha256sums=('SKIP')

prepare() {
  cp -a "${_name}"-"${pkgver}"{,-py2}
}

build(){
  cd "${srcdir}"/"${_name}"-"${pkgver}"

  cd "${srcdir}"/"${_name}"-"${pkgver}"-py2
}

package_python2-nucleus() {
  depends=(
    'bazel'
    'python2'
    'python2-contextlib2'
    'python2-intervaltree'
    'python2-mock'
    'python2-numpy'
    'python2-scipy'
    'tensorflow')

  cd "${_name}"-"${pkgver}"-py2
}

package_python-nucleus() {
  depends=(
    'bazel'
    'python'
    'python-contextlib2'
    'python-intervaltree'
    'python-mock'
    'python-numpy'
    'python-scipy'
    'tensorflow')

  cd "${_name}"-"${pkgver}"
}