python3.4-netaddr: noarch=yes

Add missing pycompile_module.
Use alternatives.
This commit is contained in:
Alessio Sergi 2016-10-14 10:59:09 +02:00
parent 6f327b7187
commit ee4905cd63

View file

@ -1,7 +1,7 @@
# Template file for 'python-netaddr'
pkgname=python-netaddr
version=0.7.18
revision=2
revision=3
noarch=yes
wrksrc="netaddr-${version}"
build_style=python-module
@ -9,22 +9,25 @@ python_versions="2.7 3.4"
pycompile_module="netaddr"
hostmakedepends="python-setuptools python3.4-setuptools"
depends="python"
makedepends="python-devel python3.4-devel"
short_desc="A network address manipulation library for Python2"
maintainer="Felix Hanley <felix@userspace.com.au>"
homepage="https://github.com/drkjam/netaddr/"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/n/netaddr/netaddr-${version}.tar.gz"
checksum=a1f5c9fcf75ac2579b9995c843dade33009543c04f218ff7c007b3c81695bd19
alternatives="netaddr:netaddr:/usr/bin/netaddr2.7"
post_install() {
vlicense LICENSE
}
python3.4-netaddr_package() {
noarch=yes
depends="python3.4"
pycompile_version="3.4"
pycompile_module="netaddr"
short_desc="${short_desc/Python2/Python3.4}"
alternatives="netaddr:netaddr:/usr/bin/netaddr3.4"
pkg_install() {
vmove usr/bin/netaddr3.4
vmove usr/lib/python3.4