mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-27 01:11:33 +02:00
See https://bitbucket.org/pypa/pypi/issues/438/backwards-compatible-un-hashed-package#comment-27734791
42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
# Contributor: Francesco Colista <francesco.colista@gmail.com>
|
|
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
|
|
pkgname=py-netifaces
|
|
_pkgname=netifaces
|
|
pkgver=0.10.4
|
|
pkgrel=0
|
|
pkgdesc="Portable module to access network interface information in Python"
|
|
url="http://alastairs-place.net/netifaces/"
|
|
arch="all"
|
|
license="MIT"
|
|
depends=""
|
|
depends_dev=""
|
|
makedepends="python-dev py-setuptools"
|
|
install=""
|
|
subpackages=""
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
|
|
_builddir="$srcdir"/$_pkgname-$pkgver
|
|
prepare() {
|
|
local i
|
|
cd "$_builddir"
|
|
for i in $source; do
|
|
case $i in
|
|
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
|
esac
|
|
done
|
|
}
|
|
|
|
build() {
|
|
cd "$_builddir"
|
|
python setup.py build || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
|
|
}
|
|
|
|
md5sums="36da76e2cfadd24cc7510c2c0012eb1e netifaces-0.10.4.tar.gz"
|
|
sha256sums="9656a169cb83da34d732b0eb72b39373d48774aee009a3d1272b7ea2ce109cde netifaces-0.10.4.tar.gz"
|
|
sha512sums="1b9b92b69e01e4dd9f9304d3812d78d58ec195a657cb47b2e629ccb1311de4a8cd9716825d7b94d4791f7c479c289638780f6f9afa8a6465fb555130da622b24 netifaces-0.10.4.tar.gz"
|