vp-build/srcpkgs/python-pathspec/template

31 lines
804 B
Bash

# Template file for 'python-pathspec'
pkgname=python-pathspec
version=0.5.9
revision=1
noarch=yes
wrksrc="pathspec-${version}"
build_style=python-module
pycompile_module="pathspec"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Python2 utility library for pattern matching of file paths"
maintainer="Sir_Boops <admin@boops.me>"
license="MPL-2.0"
homepage="https://github.com/cpburnz/python-path-specification"
distfiles="${PYPI_SITE}/p/pathspec/pathspec-${version}.tar.gz"
checksum=54a5eab895d89f342b52ba2bffe70930ef9f8d96e398cccf530d21fa0516a873
do_check() {
python3 setup.py test
}
python3-pathspec_package() {
noarch=yes
pycompile_module="pathspec"
depends="python3"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}