void-packages/srcpkgs/python-lockfile/template

35 lines
929 B
Text
Raw Normal View History

2013-10-02 16:07:31 +00:00
# Template file for 'python-lockfile'
pkgname=python-lockfile
2014-10-05 10:59:00 +00:00
version=0.10.2
revision=1
noarch=yes
2013-10-02 16:07:31 +00:00
wrksrc="lockfile-${version}"
build_style=python-module
2014-06-19 05:52:40 +00:00
python_versions="2.7 3.4"
2014-10-05 10:59:00 +00:00
hostmakedepends="python-setuptools python3.4-setuptools python-pbr python3.4-pbr"
2014-06-19 05:52:40 +00:00
makedepends="${hostmakedepends}"
depends="python"
pycompile_module="lockfile"
short_desc="Platform-independent file locking module (Python2)"
2013-10-02 16:07:31 +00:00
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="https://github.com/smontanaro/pylockfile/"
2013-10-02 16:07:31 +00:00
license="MIT"
2014-10-05 10:59:00 +00:00
distfiles="${PYPI_SITE}/l/lockfile/lockfile-${version}.tar.gz"
checksum=9e42252f17d1dd89ee31745e0c4fbe58862c25147eb0ef5295c9cd9bcb4ea2c1
2014-06-19 05:52:40 +00:00
post_install() {
2014-10-05 10:59:00 +00:00
vlicense LICENSE
}
2014-06-19 05:52:40 +00:00
python3.4-lockfile_package() {
noarch=yes
2014-06-19 05:52:40 +00:00
pycompile_version="3.4"
pycompile_module="lockfile"
depends="python3.4"
short_desc="${short_desc/Python2/Python3.4}"
2014-06-19 05:52:40 +00:00
pkg_install() {
vmove usr/lib/python3.4
2014-10-05 10:59:00 +00:00
vlicense ${wrksrc}/LICENSE
2014-06-19 05:52:40 +00:00
}
}