2013-10-02 18:07:31 +02:00
|
|
|
# Template file for 'python-lockfile'
|
|
|
|
pkgname=python-lockfile
|
|
|
|
version=0.9.1
|
2014-07-01 17:07:17 +02:00
|
|
|
revision=3
|
|
|
|
noarch=yes
|
2013-10-02 18:07:31 +02:00
|
|
|
wrksrc="lockfile-${version}"
|
|
|
|
build_style=python-module
|
2014-06-19 07:52:40 +02:00
|
|
|
python_versions="2.7 3.4"
|
|
|
|
hostmakedepends="python-devel python3.4-devel"
|
|
|
|
makedepends="${hostmakedepends}"
|
|
|
|
depends="python"
|
2014-01-01 16:10:11 +01:00
|
|
|
pycompile_module="lockfile"
|
2014-07-01 17:07:17 +02:00
|
|
|
short_desc="Platform-independent file locking module (Python2)"
|
2013-10-02 18:07:31 +02:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2014-07-01 17:07:17 +02:00
|
|
|
homepage="https://github.com/smontanaro/pylockfile/"
|
2013-10-02 18:07:31 +02:00
|
|
|
license="MIT"
|
|
|
|
distfiles="https://pypi.python.org/packages/source/l/lockfile/lockfile-${version}.tar.gz"
|
|
|
|
checksum=23da589c91f59cb7c644d5ce5df539d448341bd479917d6dde973f82e2719147
|
2014-06-19 07:52:40 +02:00
|
|
|
|
2014-07-01 17:07:17 +02:00
|
|
|
post_install() {
|
|
|
|
vinstall LICENSE 644 usr/share/licenses/${pkgname}
|
|
|
|
}
|
|
|
|
|
2014-06-19 07:52:40 +02:00
|
|
|
python3.4-lockfile_package() {
|
2014-07-01 17:07:17 +02:00
|
|
|
noarch=yes
|
2014-06-19 07:52:40 +02:00
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="lockfile"
|
|
|
|
depends="python3.4"
|
2014-07-01 17:07:17 +02:00
|
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
2014-06-19 07:52:40 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/python3.4
|
2014-07-01 17:07:17 +02:00
|
|
|
vinstall ${wrksrc}/LICENSE 644 usr/share/licenses/${pkgname}
|
2014-06-19 07:52:40 +02:00
|
|
|
}
|
|
|
|
}
|