upg libxml2
This commit is contained in:
parent
684e05f392
commit
5aff03c319
3 changed files with 112 additions and 10 deletions
103
libxml2/PKGBUILD
Normal file
103
libxml2/PKGBUILD
Normal file
|
@ -0,0 +1,103 @@
|
|||
#!/usr/bin/bash
|
||||
# JOBoRun : Jwm OpenBox Obarun RUNit
|
||||
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
||||
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
|
||||
# Website : https://pozol.eu
|
||||
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
||||
|
||||
#pkgbase=libxml2
|
||||
#pkgname=(libxml2 libxml2-docs)
|
||||
pkgname=libxml2
|
||||
pkgver=2.13.3
|
||||
pkgrel=01
|
||||
# mixup between jobcore and staging 4/22 rebuild on jobcore used staging PKGBUILD-arch
|
||||
# so staging pkgrel is bumped up one to distinguish from jobcore's build
|
||||
pkgdesc="XML C parser and toolkit w/o ipv6"
|
||||
url="https://gitlab.gnome.org/GNOME/libxml2/-/wikis/home"
|
||||
depends=(glibc zlib xz icu readline ncurses)
|
||||
makedepends=(python git)
|
||||
optdepends=('python: Python bindings')
|
||||
provides=(libxml2.so)
|
||||
#options=(debug) ## uncomment this to have the debug pkg produced
|
||||
#_commit=505e2e872e767405be565aa9d47ae9d6d5677f79 # tags/v2.12.6^0
|
||||
#source=("git+https://gitlab.gnome.org/GNOME/libxml2.git#commit=$_commit"
|
||||
source=("git+https://gitlab.gnome.org/GNOME/libxml2.git#tag=v$pkgver"
|
||||
https://www.w3.org/XML/Test/xmlts20130923.tar.gz
|
||||
0001-HACK-Don-t-run-fuzzing-tests.patch)
|
||||
|
||||
#pkgver() {
|
||||
# cd libxml2
|
||||
# git describe --tags | sed 's/-rc/rc/;s/^v//;s/[^-]*-g/r&/;s/-/+/g'
|
||||
#}
|
||||
|
||||
prepare() {
|
||||
cd libxml2
|
||||
|
||||
# Use xmlconf from conformance test suite
|
||||
ln -s ../xmlconf
|
||||
|
||||
# Do not run fuzzing tests
|
||||
git apply -3 ../0001-HACK-Don-t-run-fuzzing-tests.patch
|
||||
|
||||
NOCONFIGURE=1 ./autogen.sh
|
||||
}
|
||||
|
||||
build() {
|
||||
cd libxml2
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--disable-static \
|
||||
--enable-ipv6=no \
|
||||
--with-history \
|
||||
--with-python=/usr/bin/python \
|
||||
--with-icu \
|
||||
--with-legacy \
|
||||
--without-systemd \
|
||||
--with-threads
|
||||
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
cd libxml2
|
||||
make check
|
||||
}
|
||||
|
||||
#package_libxml2() {
|
||||
package() {
|
||||
|
||||
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"
|
||||
#}
|
||||
|
||||
#---- arch license gpg-key & sha256sums ----
|
||||
|
||||
arch=(x86_64)
|
||||
|
||||
license=(MIT)
|
||||
|
||||
b2sums=('5b3d8b9981ca7ed336e54094d6b7d10a4fab2d74b548d9cfce52d5fde62b927dc18fde60509e9d69bc00b0dbed709971cfd28fcc30fe825a491d97a9a5775af7'
|
||||
'63a47bc69278ef510cd0b3779aed729e1b309e30efa0015d28ed051cc03f9dfddb447ab57b07b3393e8f47393d15473b0e199c34cb1f5f746b15ddfaa55670be'
|
||||
'151e84ee17051eeecfa8c62a7376ff269860f3ff6d33fb92209ff5f8dc9576a5648bbe9ffc96317695c069760ccfecaa3e6f19fb7a7c2e9f039a146d7fc8a516')
|
||||
|
||||
sha256sums=(fe908e2ce6ed45381344f3be92a2acdfc1ea74e19dac4f2faa2863eb027e20d7 # libxml2 2.13.3
|
||||
9b61db9f5dbffa545f4b8d78422167083a8568c59bd1129f94138f936cf6fc1f # xmlts20130923.tar.gz
|
||||
24b0239f4528dbb83ce2aa4e8fd89cb7dd228cff360a04e76b8c689f0953c58f) # 0001-HACK-Don-t-run-fuzzing-tests.patch
|
||||
|
||||
## 36e886f962b08f99e1607e9fdfaec981aced98c4d344cdc299cf1730df67e825 libxml2-2.13.3-01-x86_64.pkg.tar.lz
|
|
@ -9,8 +9,8 @@ pkgname=(
|
|||
libxml2
|
||||
libxml2-docs
|
||||
)
|
||||
pkgver=2.13.2
|
||||
pkgrel=2
|
||||
pkgver=2.13.3
|
||||
pkgrel=1
|
||||
pkgdesc="XML C parser and toolkit"
|
||||
url="https://gitlab.gnome.org/GNOME/libxml2/-/wikis/home"
|
||||
arch=(x86_64)
|
||||
|
@ -33,7 +33,7 @@ source=(
|
|||
https://www.w3.org/XML/Test/xmlts20130923.tar.gz
|
||||
0001-HACK-Don-t-run-fuzzing-tests.patch
|
||||
)
|
||||
b2sums=('dc591e69571ead25e44a126746815c9d851ad99b7887f8021b054e6af98c80f87c421763648adbcf7c6e3a4f037aa111d4202b1f8479dda42731f05974902f86'
|
||||
b2sums=('5b3d8b9981ca7ed336e54094d6b7d10a4fab2d74b548d9cfce52d5fde62b927dc18fde60509e9d69bc00b0dbed709971cfd28fcc30fe825a491d97a9a5775af7'
|
||||
'63a47bc69278ef510cd0b3779aed729e1b309e30efa0015d28ed051cc03f9dfddb447ab57b07b3393e8f47393d15473b0e199c34cb1f5f746b15ddfaa55670be'
|
||||
'151e84ee17051eeecfa8c62a7376ff269860f3ff6d33fb92209ff5f8dc9576a5648bbe9ffc96317695c069760ccfecaa3e6f19fb7a7c2e9f039a146d7fc8a516')
|
||||
|
||||
|
@ -43,13 +43,6 @@ prepare() {
|
|||
# Use xmlconf from conformance test suite
|
||||
ln -s ../xmlconf
|
||||
|
||||
# Cherry-pick fixes from 2.13 branch
|
||||
# https://gitlab.gnome.org/GNOME/libxml2/-/issues/765
|
||||
# https://gitlab.gnome.org/GNOME/libxml2/-/issues/766
|
||||
# https://gitlab.gnome.org/GNOME/libxml2/-/issues/770
|
||||
# https://gitlab.gnome.org/GNOME/libxml2/-/issues/772
|
||||
git cherry-pick -n v2.13.2..ed8b4264f65b1ced1e3b13967dd1cf90102cfa40
|
||||
|
||||
# Do not run fuzzing tests
|
||||
git apply -3 ../0001-HACK-Don-t-run-fuzzing-tests.patch
|
||||
|
||||
|
|
6
libxml2/deps
Normal file
6
libxml2/deps
Normal file
|
@ -0,0 +1,6 @@
|
|||
git
|
||||
python
|
||||
autoconf
|
||||
automake
|
||||
gettext
|
||||
|
Loading…
Reference in a new issue