55 lines
1.4 KiB
Bash
55 lines
1.4 KiB
Bash
# Template file for 'libxml2'
|
|
pkgname=libxml2
|
|
version=2.11.4
|
|
revision=3
|
|
build_style=gnu-configure
|
|
configure_args="--with-threads --with-history --with-icu
|
|
--with-legacy --with-ftp --with-xptr-locs --enable-static"
|
|
hostmakedepends="gettext pkg-config python3"
|
|
makedepends="zlib-devel ncurses-devel readline-devel liblzma-devel icu-devel
|
|
python3-devel"
|
|
short_desc="Library providing XML and HTML support"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://gitlab.gnome.org/GNOME/libxml2"
|
|
distfiles="${GNOME_SITE}/libxml2/${version%.*}/libxml2-${version}.tar.xz"
|
|
checksum=737e1d7f8ab3f139729ca13a2494fd17bf30ddb4b7a427cf336252cab57f57f7
|
|
python_version=3
|
|
CFLAGS="-I$XBPS_CROSS_BASE/usr/include/python$py3_ver"
|
|
|
|
post_extract() {
|
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
|
rm -f test/ebcdic_566012.xml
|
|
fi
|
|
}
|
|
|
|
post_install() {
|
|
vlicense Copyright
|
|
}
|
|
|
|
libxml2-devel_package() {
|
|
depends="zlib-devel liblzma-devel icu-devel libxml2>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/bin/xml2-config
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/cmake
|
|
vmove usr/share/aclocal
|
|
vmove usr/share/gtk-doc
|
|
vmove usr/share/doc
|
|
vmove "usr/share/man/man1/xml2-config*"
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.la"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
|
|
libxml2-python3_package() {
|
|
depends="python3 ${sourcepkg}>=${version}"
|
|
short_desc+=" - Python bindings"
|
|
pkg_install() {
|
|
vmove "${py3_lib}"
|
|
}
|
|
}
|