Date: Friday, August 26, 2022 @ 21:37:41 Author: heftig Revision: 1284458
2.10.1-1 Modified: lib32-libxml2/trunk/PKGBUILD ----------+ PKGBUILD | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-08-26 21:37:06 UTC (rev 1284457) +++ PKGBUILD 2022-08-26 21:37:41 UTC (rev 1284458) @@ -4,18 +4,18 @@ # Contributor: Tom Gundersen <[email protected]> # Contributor: John Proctor <[email protected]> -pkgname=lib32-libxml2 -pkgver=2.9.14 +pkgbase=lib32-libxml2 +pkgname=(lib32-libxml2) +pkgver=2.10.1 pkgrel=1 -pkgdesc='XML parsing library, version 2 (32-bit)' -url='http://www.xmlsoft.org/' +pkgdesc="XML C parser and toolkit (32-bit)" +url="https://gitlab.gnome.org/GNOME/libxml2/-/wikis/home" arch=(x86_64) -license=(MIT) -depends=(lib32-zlib lib32-readline lib32-ncurses lib32-xz lib32-icu libxml2) +license=(custom:MIT) +depends=(lib32-zlib lib32-xz lib32-icu libxml2) makedepends=(git) -provides=(libxml2.so) options=(debug) -_commit=7846b0a677f8d3ce72486125fa281e92ac9970e8 # tags/v2.9.14^0 +_commit=d85c4a01407b75eb4005256df106d121e766a1d8 # tags/v2.10.1^0 source=("git+https://gitlab.gnome.org/GNOME/libxml2.git#commit=$_commit") sha256sums=('SKIP') @@ -25,8 +25,6 @@ } prepare() { - mkdir build - cd libxml2 NOCONFIGURE=1 ./autogen.sh @@ -37,13 +35,13 @@ export CXX="g++ -m32" export PKG_CONFIG="i686-pc-linux-gnu-pkg-config" - cd build + cd libxml2 - ../libxml2/configure \ + ./configure \ --prefix=/usr \ --libdir=/usr/lib32 \ --with-threads \ - --with-history \ + --without-history \ --without-python \ --with-icu sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool @@ -51,16 +49,20 @@ } check() { - make -C build check + cd libxml2 + make check } -package() { - make -C build DESTDIR="$pkgdir" install +package_lib32-libxml2() { + provides=(libxml2.so) + cd libxml2 + + make DESTDIR="$pkgdir" install + rm -r "$pkgdir"/usr/{include,share,bin} - rm "$pkgdir/usr/lib32/xml2Conf.sh" - install -Dm 644 build/COPYING -t "$pkgdir/usr/share/licenses/$pkgname" + install -Dm644 Copyright -t "$pkgdir/usr/share/licenses/$pkgname" } -# vim:set sw=2 et: +# vim:set sw=2 sts=-1 et:
