# Description: XML library version 2
# URL: http://xmlsoft.org/
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: zlib xz

name=libxml2
version=2.12.6
release=1
source=(https://download.gnome.org/sources/libxml2/${version:0:4}/$name-$version.tar.xz)

build() {
	cd $name-$version

	export PYTHON=/usr/bin/python3
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc
	make
	make DESTDIR=$PKG install

	if prt-get isinst python
	then
		export PYTHON=/usr/bin/python
		./configure \
			--prefix=/usr \
			--sysconfdir=/etc
		make
		make DESTDIR=$PKG install
	fi

	rm -r $PKG/usr/share/{doc,gtk-doc}
}
