libxml2: fixed build if python and python3 are installed

This commit is contained in:
Juergen Daubert 2024-02-26 11:10:14 +01:00
parent 5b7b70e7d0
commit b0e77f2646
2 changed files with 14 additions and 4 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/T/s/1D/Zs3x/eY4A26aor+hYID2NBFupzEWIyoM9BCvjU9oE/weDmFnCr3bHOUL6uSrtdUBaDkimGEjRLZOyQI=
SHA256 (Pkgfile) = d1404ce02908ed3e5596cf9ee81011d46e11e7c411b1d225eb3cc099bd0bb3c8
RWSE3ohX2g5d/ShJBGesQaqXj/okbyCCCS5+RJSVbRYwbCveUOkkHH5yKNbksmurps5tAyiqpAhFSBgQzAtlOkl3h9aTA/8RPwY=
SHA256 (Pkgfile) = f6c2c12767a575663f94a61360d646e23b95ad1c0470dbbf10b4be359f6ca1c3
SHA256 (.footprint) = 10c73f16d3428d4a71c5165d3d8a350fa37f371824d6e7cb429c4fa53510e2f2
SHA256 (libxml2-2.12.5.tar.xz) = a972796696afd38073e0f59c283c3a2f5a560b5268b4babc391b286166526b21

View File

@ -5,18 +5,28 @@
name=libxml2
version=2.12.5
release=1
release=2
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}
}