@@ 8,27 8,22 @@ pkgdesc="cairo-based HTML renderer for python"
url="http://weasyprint.org"
arch="noarch"
license="LGPL"
-depends="pango cairo py-cairocffi py-cairosvg py-cssselect2 py-tinycss2 py-pyphen py-lxml"
-subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
-makedepends="python2-dev python3-dev py-setuptools"
+depends="
+ pango cairo py-cairocffi py-cairosvg py-cssselect2 py-tinycss2 py-pyphen
+ py-lxml py-pdfrw
+"
+subpackages="py3-${pkgname#py-}:_py3"
+makedepends="python3-dev py-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
-prepare() {
- cp -r "$builddir" "$builddir"-py3
-}
-
build() {
cd "$builddir"
- python2 setup.py build
- cd "$builddir"-py3
python3 setup.py build
}
check() {
cd "$builddir"
- python2 setup.py check
- cd "$builddir"-py3
python3 setup.py check
}
@@ 36,11 31,6 @@ package() {
mkdir -p "$pkgdir"
}
-_py2() {
- cd "$builddir"
- _py python2
-}
-
_py3() {
cd "$builddir"
_py python3