summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2c10a2f92ef3477f565d8bdda5272ff1625280a1 (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
# Maintainer: Fabio Zanini <fabio.zanini __AT_ fastmail.fm>
pkgname=expressionmatrix2-git
pkgver=0.4
pkgrel=3
pkgdesc="Software for exploration of gene expression data from single-cell RNA sequencing."
url="https://github.com/chanzuckerberg/ExpressionMatrix2"
arch=('x86_64')
license=("MIT") 
depends=('python' 'boost' 'cmake' 'make' 'pybind11' 'graphviz' 'hdf5' 'python-h5py')
source=("expressionmatrix2-git::git+https://github.com/chanzuckerberg/ExpressionMatrix2.git#branch=master")
md5sums=('SKIP')

pkgver() {
  #cd "$pkgname"
  #git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
  # NOTE: has no tags
  echo '0.4'
}

build() {
  cd "$srcdir/$pkgname"

  mkdir -p build
  cd build
  cmake -DPYTHON_INCLUDE_PATH=/usr/include/python3.6m -DPYBIND11_INCLUDE_PATH=/usr/include/pybind11 -DHDF5_INCLUDE_PATH=/usr/include -DHDF5_LIBRARIES="hdf5_cpp hdf5" ../src
  make
}

package() {
  cd "$srcdir/$pkgname/build"

  mkdir -p "$pkgdir/usr/lib/python3.6/site-packages/"
  install -m755 ExpressionMatrix2.so "$pkgdir/usr/lib/python3.6/site-packages/"
}