summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 05ce681c4555ffad37958807beceb5e1123d1b45 (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
# Maintainer: Clint Valentine <valentine.clint@gmail.com>

_name=bcbio-gff
pkgbase='python-bcbio-gff'
pkgname=('python-bcbio-gff' 'python2-bcbio-gff')
pkgver=0.6.4
pkgrel=1
pkgdesc="Library to read and write Generic Feature Format"
arch=('any')
url=https://pypi.org/project/bcbio-gff/
license=('BSD')
makedepends=(
  'python' 'python-setuptools'
  'python2' 'python2-setuptools')
options=(!emptydirs)
source=(
  "${pkgname}"-"${pkgver}".tar.gz::https://pypi.io/packages/source/"${_name:0:1}"/"${_name}"/"${_name}"-"${pkgver}".tar.gz
  https://raw.githubusercontent.com/biopython/biopython/biopython-171/LICENSE.rst
)
sha256sums=(
  'e0efddc2376ed11b8f9682029b58bfd523a9aa62199f870b4ce64509ff99820b'
  '8bf4032e364a232f6afa3daa250b76dbd7a06b29fd9939351b34590ccc81f35d'
)

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

package() {
  cd "${srcdir}"/"${_name}"-"${pkgver}"
  python setup.py install --root="${pkgdir}/" --optimize=1
}

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

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

package_python2-bcbio-gff() {
  depends=('python2' 'python2-six')

  install -Dm644 LICENSE.rst "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE.rst
  cd "${_name}"-"${pkgver}"-py2
  python2 setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build
}

package_python-bcbio-gff() {
  depends=('python' 'python-six')

  install -Dm644 LICENSE.rst "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE.rst
  cd "${_name}"-"${pkgver}"
  python setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build
}