# Maintainer: Eivind Uggedal setvar pkgname = 'py-urlnorm' setvar _pkgname = ${pkgname#py-} setvar pkgver = '1.1.2' setvar pkgrel = '0' setvar pkgdesc = ""Normalize a URL to a standard unicode encoding"" setvar url = ""https://pypi.python.org/pypi/urlnorm"" setvar arch = ""noarch"" setvar license = ""MIT"" setvar depends = ""python2"" setvar depends_dev = """" setvar makedepends = ""python2-dev py-setuptools"" setvar install = """" setvar subpackages = """" setvar source = ""https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"" setvar _builddir = ""$srcdir"/$_pkgname-$pkgver" proc prepare { local i cd $_builddir for i in $source { case (i) { *.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 } setvar md5sums = ""e6544d41a4e992296ee8895873b472bf urlnorm-1.1.2.tar.gz"" setvar sha256sums = ""944b366eef37b5c99bcff10e1d1ae7f30cfeffb1eb4af16b1906d9127f467ab2 urlnorm-1.1.2.tar.gz"" setvar sha512sums = ""9cd8c5ca208518322b79eacca6db40101a6b0444f49665d42841edf890054713ef4c44a82cba3153bb7f268c5f3e3786c1524730af47c748887bb21c0d12e01c urlnorm-1.1.2.tar.gz""