desktop/python2-netifaces/PKGBUILD
2014-06-06 11:16:27 +00:00

26 lines
808 B
Bash

# Maintainer: Manuel 'UtG' <utg[dot]chakra.linux[at]gmail[dot]com>
pkgname=python2-netifaces
_pkgname=netifaces
pkgver=0.10.4
pkgrel=1
pkgdesc='Portable module to access network interface information in Python'
depends=('python2')
makedepends=('python2-setuptools')
arch=('x86_64')
url='http://alastairs-place.net/netifaces/'
license=('MIT')
provides=('netifaces' 'python-netifaces')
source=("https://pypi.python.org/packages/source/n/netifaces/netifaces-${pkgver}.tar.gz")
md5sums=('36da76e2cfadd24cc7510c2c0012eb1e')
package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python2 setup.py install --root "${pkgdir}"
# Install license, that is inside the readme file
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
install -m644 README.rst "${pkgdir}/usr/share/licenses/${pkgname}/README"
}