Date: Friday, October 21, 2022 @ 14:17:21
Author: felixonmars
Revision: 1333089
archrelease: copy trunk to multilib-staging-x86_64
Added:
lib32-libxml2/repos/multilib-staging-x86_64/
lib32-libxml2/repos/multilib-staging-x86_64/PKGBUILD
(from rev 1333088, lib32-libxml2/trunk/PKGBUILD)
----------+
PKGBUILD | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 78 insertions(+)
Copied: lib32-libxml2/repos/multilib-staging-x86_64/PKGBUILD (from rev 1333088,
lib32-libxml2/trunk/PKGBUILD)
===================================================================
--- multilib-staging-x86_64/PKGBUILD (rev 0)
+++ multilib-staging-x86_64/PKGBUILD 2022-10-21 14:17:21 UTC (rev 1333089)
@@ -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=2
+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: