#Packager: Richard Lapointe <richard@laprjns.com>
#Modified for Slint by Didier Spaier <didier~at~slint~dot~fr>

pkgname=python-lxml
pkgver=4.9.4
pkgrel=1slint
#arch=noarch
source=(https://github.com/lxml/lxml/archive/refs/tags/lxml-${pkgver}.tar.gz)
sourcetemplate=http://people.salixos.org/laprjns/$pkgname/$pkgver/
docs=("CREDITS.txt" "LICENSE.txt" "LICENSES.txt" "README.rst TOTO.txt" "BSD.txt"  "GPL.txt"  "ZopePublicLicense.txt" "elementtree.txt")
#dotnew=()
#CFLAGS=
#CXXFLAGS=
options=('nosrcpack')

#doinst() {
#
#}

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"lxml (Python bindings for libxml2 and libxslt)"
"lxml is a Pythonic binding for the libxml2 and libxslt libraries. It"
"is unique in that it combines the speed and feature completeness of"
"these libraries with the simplicity of a native Python API,"
"mostly compatible but superior to the well-known ElementTree API."
)

build() {
	cd $startdir/src/lxml-lxml-$pkgver
	python3 setup.py build --with-unicode-strings
	make html
	python3 setup.py install --prefix=/usr --root=$PKG --skip-build --optimize=1
}
