void-packages/srcpkgs/python3-grako/template

26 lines
794 B
Bash

# Template file for 'python3-grako'
pkgname=python3-grako
version=3.99.9
revision=7
wrksrc="grako-$version"
build_style=python3-module
hostmakedepends="python3-setuptools python3-Cython"
makedepends="python3-devel"
depends="python3-setuptools"
short_desc="Grammar compiler, EBNF input, PEG/Packrat parser output (Python3)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-2-Clause"
homepage="https://bitbucket.org/neogeny/grako"
distfiles="$PYPI_SITE/g/grako/grako-$version.zip"
checksum=fcc37309eab7cd0cbbb26cfd6a54303fbb80a00a58ab295d1e665bc69189c364
conflicts="python-grako>=0"
pre_build() {
sed -i '/setup_requires=/d' setup.py
}
post_install() {
# TODO: Find out why we need to change these permissions manually
chmod -R +r "${DESTDIR}/${py3_sitelib}"
vlicense LICENSE.txt
}