void-packages/srcpkgs/python-lockfile/template

40 lines
1.1 KiB
Bash

# Template file for 'python-lockfile'
pkgname=python-lockfile
version=0.12.2
revision=2
noarch=yes
wrksrc="lockfile-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools python-pbr python3-pbr"
makedepends="python-pbr python3-pbr"
depends="python"
pycompile_module="lockfile"
short_desc="Platform-independent file locking module (Python2)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://pypi.python.org/pypi/lockfile"
license="MIT"
distfiles="${PYPI_SITE}/l/lockfile/lockfile-${version}.tar.gz"
checksum=6aed02de03cba24efabcd600b30540140634fc06cfa603822d508d5361e9f799
post_install() {
vlicense LICENSE
}
python3-lockfile_package() {
noarch=yes
replaces="python3.4-lockfile>=0"
pycompile_module="lockfile"
depends="python3"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}
python3.4-lockfile_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-lockfile>=${version}_${revision}"
}