void-packages/srcpkgs/libxml2/template
Helmut Pozimski 40a5a0c7fa libxml2: add patches for multiple CVEs
patches from the GNOME libxml2 git repository at https://git.gnome.org/browse/libxml2/ , revisions:

CVE-2016-4658 c1d1f7121194036608bf555f08d3062a36fd344b
CVE-2016-5131 a005199330b86dada19d162cae15ef9bdcb6baa8 and 9ab01a277d71f54d3143c2cf333c5c2e9aaedd9e
CVE-2017-0663 92b9e8c8b3787068565a1820ba575d042f9eec66
CVE-2017-7375 90ccb58242866b0ba3edbef8fe44214a101c2b3e
CVE-2017-7376 5dca9eea1bd4263bfa4d037ab2443de1cd730f7e
CVE-2017-9047 932cc9896ab41475d4aa429c27d9afd175959d74
CVE-2017-9048 932cc9896ab41475d4aa429c27d9afd175959d74
CVE-2017-9049 e26630548e7d138d2c560844c43820b6767251e3
CVE-2017-9050 e26630548e7d138d2c560844c43820b6767251e3
2017-08-24 15:49:50 +02:00

55 lines
1.5 KiB
Bash

# Template build file for 'libxml2'.
pkgname=libxml2
version=2.9.4
revision=3
build_style=gnu-configure
configure_args="--disable-static --with-threads --with-history"
hostmakedepends="automake libtool gettext-devel pkg-config python-devel"
makedepends="zlib-devel ncurses-devel readline-devel liblzma-devel python-devel"
short_desc="Library providing XML and HTML support"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.xmlsoft.org/"
license="MIT"
distfiles="http://xmlsoft.org/sources/$pkgname-$version.tar.gz"
checksum=ffb911191e509b966deb55de705387f14156e1a56b21824357cdf0053233633c
LDFLAGS="-lz -llzma -lpthread"
pre_configure() {
autoreconf -fi
sed '/PROGRAMS =/s,$(noinst_PROGRAMS),,' -i Makefile.in
}
pre_build() {
if [ "$CROSS_BUILD" ]; then
sed "s|/usr/\(include/python2.7\)|$XBPS_CROSS_BASE/\1|g" -i python/Makefile
fi
}
post_install() {
vlicense COPYING
}
libxml2-devel_package() {
depends="zlib-devel liblzma-devel libxml2>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/bin/xml2-config
vmove usr/lib/xml2Conf.sh
vmove usr/lib/pkgconfig
vmove usr/lib/cmake
vmove usr/share/aclocal
vmove usr/share/gtk-doc
vmove usr/share/doc/${sourcepkg}-${version}
vmove "usr/share/man/man1/xml2-config*"
vmove usr/share/man/man3
vmove "usr/lib/*.so"
}
}
libxml2-python_package() {
lib32disabled=yes
short_desc+=" - python extension"
pkg_install() {
vmove "usr/lib/python*"
vmove usr/share/doc/${sourcepkg}-python-${version}
}
}