void-packages/srcpkgs/python-netifaces/template

28 lines
801 B
Bash

# Template file for 'python-netifaces'
pkgname=python-netifaces
version=0.10.7
revision=1
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://github.com/al45tair/netifaces"
license="MIT"
distfiles="${PYPI_SITE}/n/netifaces/netifaces-${version}.tar.gz"
checksum=bd590fcb75421537d4149825e1e63cca225fd47dad861710c46bd1cb329d8cbd
post_install() {
sed -n '/Copyright/,/SOFTWARE\./p' PKG-INFO >LICENSE
vlicense LICENSE
}
python3-netifaces_package() {
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}