38 lines
1.1 KiB
Bash
38 lines
1.1 KiB
Bash
# Template file for 'python-atomicwrites'
|
|
pkgname=python-atomicwrites
|
|
version=1.1.5
|
|
revision=2
|
|
noarch=yes
|
|
wrksrc="atomicwrites-${version}"
|
|
build_style="python-module"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python"
|
|
pycompile_module="atomicwrites"
|
|
short_desc="Simple Python2 API for atomic file writes"
|
|
maintainer="Oliver Kiddle <okiddle@yahoo.co.uk>"
|
|
license="MIT"
|
|
homepage="https://github.com/untitaker/python-atomicwrites"
|
|
distfiles="${PYPI_SITE}/a/atomicwrites/atomicwrites-${version}.tar.gz"
|
|
checksum=240831ea22da9ab882b551b31d4225591e5e447a68c5e188db5b89ca1d487585
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-atomicwrites_package() {
|
|
noarch=yes
|
|
replaces="python3.4-atomicwrites>=0"
|
|
pycompile_module="atomicwrites"
|
|
depends="python3"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|
|
python3.4-atomicwrites_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-atomicwrites>=${version}_${revision}"
|
|
}
|