44 lines
1.1 KiB
Bash
44 lines
1.1 KiB
Bash
# Template file for 'python-path'
|
|
pkgname=python-path
|
|
version=10.3.1
|
|
revision=2
|
|
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=412706be1cd8ab723c77829f9aa0c4d4b7c7b26c7b1be0275a6841c3cb1001e0
|
|
|
|
pre_build() {
|
|
sed -e '/setuptools_scm/d' \
|
|
-e "s/use_scm_version=True,/version=\"${version}\",/" \
|
|
-i setup.py
|
|
}
|
|
post_install() {
|
|
sed -n '/Copyright/,/SOFTWARE\./p' path.py >LICENSE
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-path_package() {
|
|
noarch=yes
|
|
depends="python3"
|
|
pycompile_module="path.py"
|
|
replaces="python3.4-path>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|
|
python3.4-path_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-path>=${version}_${revision}"
|
|
}
|