summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 59f28096672f4ba62f9538afff49b1378e6c2c70 (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
# Maintainer: AlphaJack <alphajack at tuta dot io>

pkgname="python-code2flow"
_name="code2flow"
pkgver=2.5.1
pkgrel=1
pkgdesc="Visualize your source code as DOT flowcharts"
url="https://github.com/scottrogowski/code2flow"
license=("MIT")
arch=("any")
depends=("python" "graphviz")
optdepends=("acorn: javascript support"
            "ruby-parser: ruby support")
makedepends=("python-build" "python-installer" "python-wheel" "python-setuptools")
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
b2sums=('18ee26a04ee1846901ef922fa4493e90cef4d134948c0642a8e3727369a8db9b6041d97eafdf57c08bb1c977f87e5435ba19591e8c80cf21aaa1b01194f8f418')
options=("!strip")

build(){
 cd "$_name-$pkgver"
 python -m build --wheel --no-isolation
}

package(){
 cd "$_name-$pkgver"
 python -m installer --destdir="$pkgdir" dist/*.whl
}