32 lines
850 B
Bash
32 lines
850 B
Bash
# Template file for 'python-uritemplate'
|
|
pkgname=python-uritemplate
|
|
version=3.0.0
|
|
revision=2
|
|
noarch=yes
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
build_style=python-module
|
|
pycompile_module="uritemplate"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python"
|
|
short_desc="Python2 implementation of RFC6570 URI Template"
|
|
maintainer="Peter Bui <pnutzh4x0r@gmail.com>"
|
|
license="Apache-2.0, 3-clause-BSD"
|
|
homepage="https://github.com/sigmavirus24/uritemplate"
|
|
distfiles="${PYPI_SITE}/u/uritemplate/uritemplate-${version}.tar.gz"
|
|
checksum=c02643cebe23fc8adb5e6becffe201185bf06c40bda5c0b4028a93f1527d011d
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-uritemplate_package() {
|
|
noarch=yes
|
|
depends="python3"
|
|
pycompile_module="uritemplate"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|