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

pkgname='snakemake-git'
pkgver=4.3.0.79.gbb1a966
pkgrel=1
pkgdesc="Python-based language and execution environment for GNU Make-like workflows"
arch=('any')
url="https://bitbucket.org/snakemake/snakemake"
license=('MIT')
depends=(
    'python'
    'python-appdirs'
    'python-configargparse'
    'python-ratelimiter'
    'python-requests'
    'python-yaml'
    'python-wrapt')
makedepends=('python-setuptools')
optdepends=(
  'graphviz: For DAG visualization'
  'python-docutils: For report generation'
)
provides=('snakemake')
conflicts=('snakemake')
options=(!emptydirs)
source=("git+https://bitbucket.org/${pkgname//-git/}/${pkgname//-git/}.git")
md5sums=('SKIP')

pkgver() {  # Most recent un-annotated tag from last commit.
  cd "${srcdir}/${pkgname//-git/}"
  git describe --long | sed 's/v\([^-]*-g\)/r\1/;s/-/./g' | sed 's/v\d*//g'
}

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