void-packages/srcpkgs/black/template

28 lines
742 B
Bash

# Template file for 'black'
pkgname=black
version=19.10b0
revision=2
archs=noarch
build_style=python3-module
pycompile_module="black.py blib2to3 _black_version.py"
hostmakedepends="git python3-setuptools"
depends="python3-appdirs python3-attrs python3-click
python3-pathspec python3-toml python3-regex python3-typed-ast"
short_desc="Uncompromising Python code formatter"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/psf/black"
distfiles="https://github.com/psf/black/archive/${version}.tar.gz"
checksum=b9cee80c9682be0cddfe7eff1934ed12948b33768c876868ef6bc40d2f2c3bfb
pre_build() {
# Black requires a .git directory
# or build fails
cd "$wrksrc"
git init
}
post_install() {
vlicense LICENSE
}