void-packages/srcpkgs/python-path/template
Alessio Sergi 217e7d31f2 srcpkgs: remove python3.4-* transitional dummy packages
After more than a year the switch to python3 packages, it is time to say
them goodbye. So long, and thanks for all the fish.
2017-12-20 11:29:51 +01:00

38 lines
934 B
Bash

# Template file for 'python-path'
pkgname=python-path
version=10.5
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=63a7af08676668fd51750f111affbd38c1a13c61aba15c6665b16681771c79a8
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"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}