Date: Thursday, November 21, 2019 @ 21:18:01 Author: arojas Revision: 531334
archrelease: copy trunk to multilib-testing-x86_64 Added: lib32-libxml2/repos/multilib-testing-x86_64/ lib32-libxml2/repos/multilib-testing-x86_64/PKGBUILD (from rev 531333, lib32-libxml2/trunk/PKGBUILD) ----------+ PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) Copied: lib32-libxml2/repos/multilib-testing-x86_64/PKGBUILD (from rev 531333, lib32-libxml2/trunk/PKGBUILD) =================================================================== --- multilib-testing-x86_64/PKGBUILD (rev 0) +++ multilib-testing-x86_64/PKGBUILD 2019-11-21 21:18:01 UTC (rev 531334) @@ -0,0 +1,55 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Maintainer: Jan de Groot <j...@archlinux.org> +# Contributor: John Proctor <jproc...@prium.net> + +_pkgbasename=libxml2 +pkgname=lib32-$_pkgbasename +pkgver=2.9.10 +pkgrel=1 +pkgdesc='XML parsing library, version 2 (32-bit)' +url="http://www.xmlsoft.org/" +arch=(x86_64) +license=(MIT) +depends=(lib32-zlib lib32-readline lib32-ncurses lib32-xz lib32-icu libxml2) +makedepends=(git) +_commit=41a34e1f4ffae2ce401600dbb5fe43f8fe402641 # tags/v2.9.10^0 +source=("git+https://gitlab.gnome.org/GNOME/libxml2.git#commit=$_commit") +sha256sums=('SKIP') + +pkgver() { + cd ${_pkgbasename} + git describe --always --tags | sed 's/-rc/rc/;s/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd ${_pkgbasename} + NOCONFIGURE=1 ./autogen.sh +} + +build() { + export CC="gcc -m32" + export CXX="g++ -m32" + export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" + + cd ${_pkgbasename} + + ./configure \ + --prefix=/usr \ + --with-threads \ + --with-history \ + --with-icu \ + --libdir=/usr/lib32 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool + make +} + +package() { + cd ${_pkgbasename} + make DESTDIR="${pkgdir}" install + + rm -rf "${pkgdir}"/usr/{include,share,bin} "$pkgdir/usr/lib32/xml2Conf.sh" + mkdir -p "$pkgdir/usr/share/licenses" + ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname" +} + +# vim: ts=2 sw=2 et: