Date: Thursday, October 20, 2022 @ 21:42:04
  Author: heftig
Revision: 1333021

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 1333020, lib32-libxml2/trunk/PKGBUILD)

----------+
 PKGBUILD |   78 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 78 insertions(+)

Copied: lib32-libxml2/repos/multilib-testing-x86_64/PKGBUILD (from rev 1333020, 
lib32-libxml2/trunk/PKGBUILD)
===================================================================
--- multilib-testing-x86_64/PKGBUILD                            (rev 0)
+++ multilib-testing-x86_64/PKGBUILD    2022-10-20 21:42:04 UTC (rev 1333021)
@@ -0,0 +1,78 @@
+# Maintainer: Jan Alexander Steffens (heftig) <[email protected]>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Jan de Groot <[email protected]>
+# Contributor: Tom Gundersen <[email protected]>
+# Contributor: John Proctor <[email protected]>
+
+pkgbase=lib32-libxml2
+pkgname=(lib32-libxml2)
+pkgver=2.10.3
+pkgrel=1
+pkgdesc="XML C parser and toolkit (32-bit)"
+url="https://gitlab.gnome.org/GNOME/libxml2/-/wikis/home";
+arch=(x86_64)
+license=(custom:MIT)
+depends=(
+  lib32-icu
+  lib32-xz
+  lib32-zlib
+  libxml2
+)
+makedepends=(
+  git
+)
+options=(debug)
+_commit=f507d167f1755b7eaea09fb1a44d29aab828b6d1  # tags/v2.10.3^0
+source=("git+https://gitlab.gnome.org/GNOME/libxml2.git#commit=$_commit";)
+sha256sums=('SKIP')
+
+pkgver() {
+  cd libxml2
+  git describe --tags | sed 's/-rc/rc/;s/^v//;s/[^-]*-g/r&/;s/-/+/g'
+}
+
+prepare() {
+  cd libxml2
+
+  NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+  export CC="gcc -m32"
+  export CXX="g++ -m32"
+  export PKG_CONFIG="i686-pc-linux-gnu-pkg-config"
+
+  cd libxml2
+
+  ./configure \
+    --prefix=/usr \
+    --libdir=/usr/lib32 \
+    --sysconfdir=/etc \
+    --localstatedir=/var \
+    --with-threads \
+    --without-history \
+    --without-python \
+    --with-icu \
+    --disable-static
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+  make
+}
+
+check() {
+  cd libxml2
+  make check
+}
+
+package_lib32-libxml2() {
+  provides=(libxml2.so)
+
+  cd libxml2
+
+  make DESTDIR="$pkgdir" install
+
+  rm -r "$pkgdir"/usr/{include,share,bin}
+
+  install -Dm644 Copyright -t "$pkgdir/usr/share/licenses/$pkgname"
+}
+
+# vim:set sw=2 sts=-1 et:

Reply via email to