# Contributor: Fabian Affolter # Maintainer: Fabian Affolter setglobal pkgname = 'py-netlib' setglobal _pkgname = 'netlib' setglobal pkgver = '0.15' setglobal pkgrel = '0' setglobal pkgdesc = '"A Collection of network utility classes'" setglobal url = '"https://github.com/mitmproxy/netlib'" setglobal arch = '"noarch'" setglobal license = '"MIT'" setglobal depends = '"python2 py-openssl py-asn1'" setglobal depends_dev = ''"" setglobal makedepends = '"python2-dev py-setuptools'" setglobal install = ''"" setglobal subpackages = ''"" setglobal source = ""https://files.pythonhosted.org/packages/source/$(_pkgname:0:1)/$_pkgname/$_pkgname-$pkgver.tar.gz"" setglobal _builddir = ""$srcdir"/$_pkgname-$pkgver" proc prepare { local i cd $_builddir for i in [$source] { match $i { with *.patch msg $i; patch -p1 -i "$srcdir"/$i || return 1 } } } proc build { cd $_builddir python2 setup.py build || return 1 } proc package { cd $_builddir python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 } setglobal md5sums = '"b4f8c430dd9cae6c9b981b72c9954ffc netlib-0.15.tar.gz'" setglobal sha256sums = '"5f5c02724a32f4d44401a9dccaf7d3bdf077a352d11dc5131bb61fb24299afa5 netlib-0.15.tar.gz'" setglobal sha512sums = '"432ce150e4e8a4f5161a0bac528f039256a82d7814e195909beba60cbf045dbe015c978d86bf054f396b9ad11c674ca6019b54c4a796b37393b4a3433a2ada08 netlib-0.15.tar.gz'"