2022-10-29 20:07:11 +02:00
|
|
|
# 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
|
2023-04-22 12:22:10 +02:00
|
|
|
pkgname=(
|
|
|
|
libxml2
|
|
|
|
libxml2-docs
|
|
|
|
)
|
2024-06-13 03:52:32 +02:00
|
|
|
pkgver=2.13.0
|
2024-06-15 02:37:46 +02:00
|
|
|
pkgrel=3
|
2022-10-29 20:07:11 +02:00
|
|
|
pkgdesc="XML C parser and toolkit"
|
|
|
|
url="https://gitlab.gnome.org/GNOME/libxml2/-/wikis/home"
|
|
|
|
arch=(x86_64)
|
2024-01-17 19:39:43 +01:00
|
|
|
license=(MIT)
|
2022-10-29 20:07:11 +02:00
|
|
|
depends=(
|
2024-06-15 02:37:46 +02:00
|
|
|
bash
|
2024-05-18 23:45:44 +02:00
|
|
|
glibc
|
2022-10-29 20:07:11 +02:00
|
|
|
icu
|
|
|
|
ncurses
|
|
|
|
readline
|
|
|
|
xz
|
|
|
|
zlib
|
|
|
|
)
|
|
|
|
makedepends=(
|
|
|
|
git
|
|
|
|
python
|
|
|
|
)
|
2023-04-22 12:22:10 +02:00
|
|
|
source=(
|
2024-05-18 23:45:44 +02:00
|
|
|
"git+https://gitlab.gnome.org/GNOME/libxml2.git#tag=v$pkgver"
|
2023-04-22 12:22:10 +02:00
|
|
|
https://www.w3.org/XML/Test/xmlts20130923.tar.gz
|
2024-06-15 02:37:46 +02:00
|
|
|
0001-HACK-Don-t-run-fuzzing-tests.patch
|
|
|
|
0002-xinclude-Add-missing-include.patch
|
2023-04-22 12:22:10 +02:00
|
|
|
)
|
2024-06-13 03:52:32 +02:00
|
|
|
b2sums=('5373f8063ac8d1515841141f52aa7fb144e0ca1602ccdf9cdaf2ebf6e98f49ef45e62bbfbc828395dde0656281f75bd017d8a96ad7dbd076baf4c046907806e2'
|
2024-06-15 02:37:46 +02:00
|
|
|
'63a47bc69278ef510cd0b3779aed729e1b309e30efa0015d28ed051cc03f9dfddb447ab57b07b3393e8f47393d15473b0e199c34cb1f5f746b15ddfaa55670be'
|
2024-06-13 03:52:32 +02:00
|
|
|
'151e84ee17051eeecfa8c62a7376ff269860f3ff6d33fb92209ff5f8dc9576a5648bbe9ffc96317695c069760ccfecaa3e6f19fb7a7c2e9f039a146d7fc8a516'
|
2024-06-15 02:37:46 +02:00
|
|
|
'bf4adb119c7f2f332e43326a9e5c9a84b149c1652441f21702824ffb1f57528995c70b392c21cf25d0dd3433c7080c3bf304091342d7fa604be1f52f92f639a3')
|
2022-10-29 20:07:11 +02:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd libxml2
|
|
|
|
|
|
|
|
# Use xmlconf from conformance test suite
|
|
|
|
ln -s ../xmlconf
|
|
|
|
|
2024-06-15 02:37:46 +02:00
|
|
|
# https://gitlab.gnome.org/GNOME/libxml2/-/issues/732
|
|
|
|
git cherry-pick -n 8322eef39d775b1c16a5895a77da53d82653a04e
|
|
|
|
|
|
|
|
# https://gitlab.gnome.org/GNOME/libxml2/-/issues/731
|
|
|
|
git cherry-pick -n 9ecabe1c2461dc4aa28a75bb9c889f82e37a5786
|
|
|
|
|
|
|
|
# https://gitlab.gnome.org/GNOME/libxml2/-/issues/733
|
|
|
|
# https://github.com/systemd/systemd/issues/33302
|
|
|
|
git cherry-pick -n aa90cb0c578bd189089cd1fe195faf85040ac98b \
|
|
|
|
c04d9b1b87eaf5c12f70173762f8c81c34e59aeb
|
|
|
|
|
2022-10-29 20:07:11 +02:00
|
|
|
# Do not run fuzzing tests
|
2023-07-04 03:37:59 +02:00
|
|
|
git apply -3 ../0001-HACK-Don-t-run-fuzzing-tests.patch
|
2022-10-29 20:07:11 +02:00
|
|
|
|
2024-06-15 02:37:46 +02:00
|
|
|
# Fix gambas
|
|
|
|
git apply -3 ../0002-xinclude-Add-missing-include.patch
|
|
|
|
|
2022-10-29 20:07:11 +02:00
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2023-04-22 12:22:10 +02:00
|
|
|
local configure_options=(
|
|
|
|
--prefix=/usr
|
|
|
|
--sysconfdir=/etc
|
|
|
|
--localstatedir=/var
|
2023-11-16 22:13:51 +01:00
|
|
|
--disable-static
|
2023-04-22 12:22:10 +02:00
|
|
|
--with-history
|
|
|
|
--with-icu
|
2023-11-16 22:13:51 +01:00
|
|
|
--with-legacy
|
2023-04-22 12:22:10 +02:00
|
|
|
--with-python=/usr/bin/python
|
|
|
|
--with-threads
|
|
|
|
)
|
|
|
|
|
2022-10-29 20:07:11 +02:00
|
|
|
cd libxml2
|
2023-04-22 12:22:10 +02:00
|
|
|
./configure "${configure_options[@]}"
|
2022-10-29 20:07:11 +02:00
|
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd libxml2
|
|
|
|
make check
|
|
|
|
}
|
|
|
|
|
|
|
|
package_libxml2() {
|
|
|
|
optdepends=('python: Python bindings')
|
|
|
|
provides=(libxml2.so)
|
|
|
|
|
|
|
|
cd libxml2
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
|
|
|
|
mkdir -p ../doc/usr/share
|
|
|
|
mv "$pkgdir"/usr/share/{doc,gtk-doc} -t ../doc/usr/share
|
|
|
|
|
|
|
|
install -Dm644 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:
|