blob: 1d1664047dff48f05d01cbda23ffce51171123f3 (
plain) (
tree)
|
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libxml2
pkgver=2.9.10
pkgrel=0
pkgdesc="XML parsing library"
url="http://www.xmlsoft.org/"
arch="all"
options="!check !strip" # Impossible to run on Python 3
license="MIT"
depends=""
depends_dev="zlib-dev icu-dev"
checkdepends="perl tar"
makedepends="$depends_dev python3-dev"
subpackages="$pkgname-doc $pkgname-dev py-libxml2:py"
provides="$pkgname-utils=$pkgver-r$pkgrel"
source="ftp://ftp.xmlsoft.org/${pkgname}/${pkgname}-${pkgver}.tar.gz
python-segfault-fix.patch
"
# secfixes:
# 2.9.4-r1:
# - CVE-2016-5131
# 2.9.4-r2:
# - CVE-2016-9318
# 2.9.4-r4:
# - CVE-2017-5969
prepare() {
default_prepare
# setup.py is generated
rm python/setup.py
}
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--with-icu \
--with-python=/usr/bin/python3
make
}
package() {
make -j1 DESTDIR="$pkgdir" install
}
dev() {
default_dev
mv "$pkgdir"/usr/lib/*.sh "$subpkgdir"/usr/lib/
}
py() {
pkgdesc="$pkgname Python bindings"
provides="py3-libxml2=$pkgver-r$pkgrel"
install -d "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/python3* "$subpkgdir"/usr/lib/
}
sha512sums="0adfd12bfde89cbd6296ba6e66b6bed4edb814a74b4265bda34d95c41d9d92c696ee7adb0c737aaf9cc6e10426a31a35079b2a23d26c074e299858da12c072ed libxml2-2.9.10.tar.gz
384b3d2031cd8f77528190bbb7652faa9ccb22bc604bcf4927e59046d38830dac38010828fe1568b6514976f725981a6d3ac1aa595d31477a36db2afe491452c python-segfault-fix.patch"
|