27 lines
908 B
Bash
27 lines
908 B
Bash
# Template file for 'python-netifaces'
|
|
pkgname=python-netifaces
|
|
version=0.10.5
|
|
revision=2
|
|
wrksrc="netifaces-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
makedepends="python-devel python3-devel"
|
|
short_desc="Python2 library to retrieve information about network interfaces"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="https://bitbucket.org/al45tair/netifaces"
|
|
license="MIT"
|
|
distfiles="${PYPI_SITE}/n/netifaces/netifaces-${version}.tar.gz"
|
|
checksum=59d8ad52dd3116fcb6635e175751b250dc783fb011adba539558bd764e5d628b
|
|
|
|
python3-netifaces_package() {
|
|
replaces="python3.4-netifaces>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|
|
python3.4-netifaces_package() {
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-netifaces>=${version}_${revision}"
|
|
}
|