APP=python-lxml
VERSION=4.5.1
BUILD=1sml
HOMEPAGE='https://lxml.de/'
DESC="python library for processing HTML and XML documents"
REQUIRES="python3 python-setuptools"

build() {
  mkandenterbuilddir
  rm -rf lxml-$VERSION

  tar xf $SRCDIR/lxml-$VERSION.tar.?z*
  cd lxml-$VERSION

  python setup.py build
  python setup.py install --prefix="" --root=$PKG
  cp LICENSES.txt $PKGDOCS/
  head -n 1000 CHANGES.txt > $PKGDOCS/CHANGELOG

  mkfinalpkg
}

SHA512SUMS="
dd6216c5741a48cd4113b69fe9ac3ac976eba210cc1ef65358e0f0977573e3057bb4ab9345a63edfd98fc8b1e2fc2b3a6141bafdcee66720a40c1160c837bf9c  lxml-4.5.1.tar.lz
"
