mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 19:25:25 +03:00
41 lines
1.2 KiB
Text
41 lines
1.2 KiB
Text
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py-netlib
|
|
_pkgname=netlib
|
|
pkgver=0.10.1
|
|
pkgrel=0
|
|
pkgdesc="A Collection of network utility classes"
|
|
url="https://github.com/mitmproxy/netlib"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python py-openssl py-asn1"
|
|
depends_dev=""
|
|
makedepends="python-dev py-setuptools"
|
|
install=""
|
|
subpackages=""
|
|
source="http://pypi.python.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="d6dcd804e1323c25d12b1f6ee1b600b8 netlib-0.10.1.tar.gz"
|
|
sha256sums="ee22365f6aad99326fa83788e8f71ea940affea0df3142efde247c7d520fab7e netlib-0.10.1.tar.gz"
|
|
sha512sums="56df59b94b6dcd61809f7319dcfd6807294d0dd1011d64d6b26beb50e3217052a96b267f1facacf46cbd0379a29df7ad5f68ee025b64b7e8fbfd31a9b4d06469 netlib-0.10.1.tar.gz"
|