summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e1f571dcc20ac0ee16144adb14ad9b73973ce050 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Maintainer: Clint Valentine <valentine.clint@gmail.com>

_name=multiqc
pkgbase='python-multiqc'
pkgname=('python-multiqc' 'python2-multiqc')
pkgver=1.4
pkgrel=2
pkgdesc="Create aggregate bioinformatics analysis reports across many samples and tools"
arch=('any')
url="https://pypi.python.org/pypi/multiqc"
license=('GPL3')
makedepends=(
  'python' 'python-setuptools'
  'python2' 'python2-setuptools')
options=(!emptydirs)
source=("${pkgname}"-"${pkgver}".tar.gz::https://pypi.python.org/packages/af/a1/5c5702c4b0ce9ee6fb7d1c982cc6f20832a85bfce184dcb8178f0bdcb5df/multiqc-1.4.tar.gz)
sha256sums=('a83ea64c9a92137a63fc3c6ea37b13af241f9cd9b800eb17d9f03a5d7f261d46')

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

build(){
  cd "${srcdir}"/"${_name}"-"${pkgver}"
  python setup.py build

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

package_python2-multiqc() {
  depends=(
    'python2'
    'python2-click'
    'python2-future'
    'python2-jinja'
    'python2-lzstring'
    'python2-markdown'
    'python2-matplotlib'
    'python2-networkx'
    'python2-numpy'
    'python2-requests'
    'python2-simplejson'
    'python2-spectra'
    'python2-yaml')

  cd "${_name}"-"${pkgver}"-py2
  python2 setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build
  mv "${pkgdir}"/usr/bin/"${_name}" "${pkgdir}"/usr/bin/"${_name}"2
}

package_python-multiqc() {
  depends=(
    'python'
    'python-click'
    'python-future'
    'python-jinja'
    'python-lzstring'
    'python-markdown'
    'python-matplotlib'
    'python-networkx'
    'python-numpy'
    'python-requests'
    'python-simplejson'
    'python-spectra'
    'python-yaml')

  cd "${_name}"-"${pkgver}"
  python setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build
}