| Name |
libxml2 |
| Description |
XML C parser and toolkit |
| Version |
2.15.1-5 |
| Package Base |
libxml2 |
| Homepage |
https://gitlab.gnome.org/GNOME/libxml2/-/wikis/home |
| Maintainers |
['Jan Alexander Steffens (heftig) <heftig@archlinux.org>', 'Jelle van der Waa <jelle@archlinux.org>', 'Levente Polyak <anthraxx[at]archlinux[dot]org>'] |
| Contributors |
['Jan de Groot <jgc@archlinux.org>', 'John Proctor <jproctor@prium.net>', 'Tom Gundersen <teg@jklm.no>'] |
| Distro-repo |
https://gitlab.archlinux.org/archlinux/packaging/packages/libxml2 |
| Sources |
['git+https://gitlab.gnome.org/GNOME/libxml2.git#tag=v2.15.1', 'https://www.w3.org/XML/Test/xmlts20130923.tar.gz'] |
| Dependencies |
['bash', 'glibc', 'icu', 'libicuuc.so', 'readline', 'zlib'] |
| Optional-Dependencies |
['python'] |
| Build-Dependencies |
['docbook-xsl', 'doxygen', 'git', 'meson', 'python'] |
| Provides |
['libxml2.so'] |
| Builddate |
14-12-2025 18:22:13 |
| Architecture |
x86_64 |
| Distro-Version |
|
| Licenses |
['MIT'] |
| Hash |
59a7805fa1a8a67d01406abaabf52460ec99878ac97fab4e026eb557398b5dc4 |
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Jan de Groot <jgc@archlinux.org>
# Contributor: Tom Gundersen <teg@jklm.no>
# Contributor: John Proctor <jproctor@prium.net>
pkgbase=libxml2
pkgname=(
libxml2
libxml2-docs
)
pkgver=2.15.1
pkgrel=5
pkgdesc="XML C parser and toolkit"
url="https://gitlab.gnome.org/GNOME/libxml2/-/wikis/home"
arch=(x86_64)
license=(MIT)
depends=(
bash
glibc
icu
readline
zlib
)
makedepends=(
docbook-xsl
doxygen
git
meson
python
)
source=(
"git+https://gitlab.gnome.org/GNOME/libxml2.git#tag=v$pkgver"
https://www.w3.org/XML/Test/xmlts20130923.tar.gz
)
b2sums=('aaed705a19f7c238bd0eebc52536e7becb7c96b6a749fe7a4051a82bd311b918b14ddb996d5a0f07514d5abf6ad1287e8d6f4053a5a371afc6885bc98154e3cc'
'63a47bc69278ef510cd0b3779aed729e1b309e30efa0015d28ed051cc03f9dfddb447ab57b07b3393e8f47393d15473b0e199c34cb1f5f746b15ddfaa55670be')
prepare() {
cd libxml2
# Use xmlconf from conformance test suite
ln -s ../xmlconf
}
build() {
local meson_options=(
-D icu=enabled
-D legacy=enabled
)
arch-meson libxml2 build "${meson_options[@]}"
meson compile -C build
}
check() {
meson test -C build --print-errorlogs
}
package_libxml2() {
depends+=(libicuuc.so)
optdepends=('python: Python bindings')
provides=(libxml2.so)
meson install -C build --destdir "$pkgdir"
install -Dm644 libxml2/libxml.m4 -t "$pkgdir/usr/share/aclocal"
# Split docs
mkdir -p doc/usr/share
mv "$pkgdir"/usr/share/doc -t doc/usr/share
install -Dm644 libxml2/Copyright -t "$pkgdir/usr/share/licenses/$pkgname"
}
package_libxml2-docs() {
pkgdesc+=" (documentation)"
depends=()
mv doc/* "$pkgdir"
install -Dm644 libxml2/Copyright -t "$pkgdir/usr/share/licenses/$pkgname"
}
# vim:set sw=2 sts=-1 et: