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

pkgname='snakemake-git'
pkgver=4.3.0.325.g1e851bc
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-datrie'
    '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
}