37 lines
883 B
Bash
37 lines
883 B
Bash
# Template file for 'python-path'
|
|
pkgname=python-path
|
|
version=11.0.1
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="path.py-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python"
|
|
pycompile_module="path.py"
|
|
short_desc="Python2 module wrapper for os.path"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="https://github.com/jaraco/path.py"
|
|
license="MIT"
|
|
distfiles="${PYPI_SITE}/p/path.py/path.py-${version}.tar.gz"
|
|
checksum=e7eb9d0ca4110d9b4d7c9baa0696d8c94f837d622409cefc5ec9e7c3d02ea11f
|
|
|
|
pre_build() {
|
|
sed -e '/setuptools_scm/d' \
|
|
-e "s/use_scm_version=True,/version=\"${version}\",/" \
|
|
-i setup.py
|
|
}
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-path_package() {
|
|
noarch=yes
|
|
depends="python3"
|
|
pycompile_module="path.py"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|