void-packages/srcpkgs/python-netifaces/template
2019-02-24 07:55:36 -03:00

27 lines
801 B
Bash

# Template file for 'python-netifaces'
pkgname=python-netifaces
version=0.10.9
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>"
license="MIT"
homepage="https://github.com/al45tair/netifaces"
distfiles="${PYPI_SITE}/n/netifaces/netifaces-${version}.tar.gz"
checksum=2dee9ffdd16292878336a58d04a20f0ffe95555465fee7c9bd23b3490ef2abf3
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
}
}