[build] type = "meson" [build.flags] build_dir = "build" configure = [ "-Dhistory=enabled", "-Dicu=enabled", "-Dc_args=-D_GNU_SOURCE", ] post_install = [ 'test -f $DESTDIR/usr/bin/xml2-config && sed "s/--static/--shared/" -i $DESTDIR/usr/bin/xml2-config || true', 'test -f libxml.m4 && install -Dm644 libxml.m4 -t $DESTDIR/usr/share/aclocal || true', ] build_32 = true [dependencies] build = [ "python", "meson", "ninja", ] runtime = [ "sh", "glibc", "icu78", "readline", "zlib-ng", ] optional = [ "python" ] [dependencies.lib32] build = [ "python", "meson", "ninja", ] runtime = [ "lib32-glibc", "lib32-icu78", "lib32-readline", "lib32-zlib-ng", ] [package] description = "libraries and utilities used for parsing XML files" homepage = "https://gitlab.gnome.org/GNOME/libxml2" license = "MIT" name = "libxml215" version = "2.15.2" revision = 1 [[source]] extract_dir = "$name-$version" post_extract = ["""sed -i "/'git'/,+3d" meson.build"""] sha256 = "b2:e8adec751b6c8c8fd8358bee0c33159813601f6306b318314ffbf85324fa3ebeee2e838608a7fe365ffe4b82c4700f328fc27ae9a75cd7ed67cf256067542c2e" url = "https://download.gnome.org/sources/libxml2/2.15/libxml2-$version.tar.xz" patches = [ "0001-catalog-Free-xmlCatalogResolveCache-on-cleanup.patch" ] [[manual_sources]] files = [ "0001-catalog-Free-xmlCatalogResolveCache-on-cleanup.patch" ] sha256 = "skip"