37 lines
1.1 KiB
Bash
37 lines
1.1 KiB
Bash
# Template file for 'python-grako'
|
|
pkgname=python-grako
|
|
version=3.99.9
|
|
revision=3
|
|
wrksrc="neogeny-${pkgname/python-/}-275d3c4fe4ac"
|
|
build_style=python-module
|
|
pycompile_module="grako"
|
|
hostmakedepends="python-setuptools python3-setuptools python-Cython python3-Cython"
|
|
makedepends="python-devel python3-devel"
|
|
depends="python-setuptools"
|
|
short_desc="Grammar compiler, EBNF input, PEG/Packrat parser output (Python2)"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="BSD-2-Clause"
|
|
homepage="https://bitbucket.org/neogeny/grako"
|
|
distfiles="https://bitbucket.org/neogeny/grako/get/${version}.tar.bz2"
|
|
checksum=82cc8d601a272106ed3bbc09f37b04b85f21cbe4c8bbebb41bb9d57ac419696f
|
|
alternatives="grako:grako:/usr/bin/grako2"
|
|
|
|
pre_build() {
|
|
sed -i '/setup_requires=/d' setup.py
|
|
}
|
|
post_install() {
|
|
vlicense LICENSE.txt
|
|
}
|
|
|
|
python3-grako_package() {
|
|
pycompile_module="grako"
|
|
depends="python3-setuptools"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
alternatives="grako:grako:/usr/bin/grako3"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vmove usr/bin/grako3
|
|
vlicense LICENSE.txt
|
|
}
|
|
}
|