# Contributor: Fabian Affolter # Maintainer: Fabian Affolter setvar pkgname = 'py-markupsafe' setvar _pkgname = 'MarkupSafe' setvar pkgver = '1.0' setvar pkgrel = '0' setvar pkgdesc = ""Implements a XML/HTML/XHTML Markup safe string"" setvar url = ""https://github.com/mitsuhiko/markupsafe"" setvar arch = ""all"" setvar license = ""BSD"" setvar depends = """" setvar makedepends = ""python2-dev python3-dev py-setuptools"" setvar subpackages = ""py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2"" setvar source = ""https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"" setvar builddir = ""$srcdir/$_pkgname-$pkgver"" proc build { cd $builddir python2 setup.py build || return 1 python3 setup.py build || return 1 } proc package { mkdir -p $pkgdir } proc _py { local python="$1" setvar pkgdesc = ""$pkgdesc (for $python)"" setvar install_if = ""$pkgname=$pkgver-r$pkgrel $python"" cd $builddir $python setup.py install --prefix=/usr --root="$subpkgdir" || return 1 find $subpkgdir -name "*.c" -delete } proc _py2 { setvar replaces = "$pkgname" _py python2 } proc _py3 { _py python3 } setvar sha512sums = ""7437a02cb1b9c1d6d6c20b13d394f24a1cd1cb8c743f832d8b1cbb6ab8846f70f54d924dd693423b33c4d592e772983ae38fd4a35961e233457c48bd3584ecb8 MarkupSafe-1.0.tar.gz""