34 lines
929 B
Text
34 lines
929 B
Text
# Template file for 'python-lockfile'
|
|
pkgname=python-lockfile
|
|
version=0.10.2
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="lockfile-${version}"
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
hostmakedepends="python-setuptools python3.4-setuptools python-pbr python3.4-pbr"
|
|
makedepends="${hostmakedepends}"
|
|
depends="python"
|
|
pycompile_module="lockfile"
|
|
short_desc="Platform-independent file locking module (Python2)"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
homepage="https://github.com/smontanaro/pylockfile/"
|
|
license="MIT"
|
|
distfiles="${PYPI_SITE}/l/lockfile/lockfile-${version}.tar.gz"
|
|
checksum=9e42252f17d1dd89ee31745e0c4fbe58862c25147eb0ef5295c9cd9bcb4ea2c1
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3.4-lockfile_package() {
|
|
noarch=yes
|
|
pycompile_version="3.4"
|
|
pycompile_module="lockfile"
|
|
depends="python3.4"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3.4
|
|
vlicense ${wrksrc}/LICENSE
|
|
}
|
|
}
|