# Contributor: William Pitcock # Maintainer: William Pitcock setglobal pkgname = 'py-weasyprint' setglobal _pkgname = 'WeasyPrint' setglobal pkgver = '0.19.2' setglobal pkgrel = '0' setglobal pkgdesc = '"cairo-based HTML renderer for python'" setglobal url = '"http://weasyprint.org'" setglobal arch = '"noarch'" setglobal license = '"LGPL'" setglobal depends = '"python2 pango cairo py-cairocffi py-cairosvg py-cssselect py-tinycss py-pyphen py-lxml'" 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 = '"75f1de2cf4677c53c5bff1adb23033ec WeasyPrint-0.19.2.tar.gz'" setglobal sha256sums = '"63fa62b40a5bd3a1f14887950f6f40d73fff752507cd41f0040606b3d5399ba4 WeasyPrint-0.19.2.tar.gz'" setglobal sha512sums = '"c491ec6788b164857265f11391148d761a737a47045288258f5584b277d58075e49384a9c0fa93ab849adbc1672684518039e2cc7bcf76b684dbab196f666166 WeasyPrint-0.19.2.tar.gz'"