[arch-commits] Commit in lib32-libxml2/trunk (PKGBUILD)
Jan Steffens
heftig at gemini.archlinux.org
Tue Aug 30 17:51:07 UTC 2022
Date: Tuesday, August 30, 2022 @ 17:51:07
Author: heftig
Revision: 1288909
2.10.2-2
Modified:
lib32-libxml2/trunk/PKGBUILD
----------+
PKGBUILD | 22 ++++++++++++++++------
1 file changed, 16 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-08-30 17:32:57 UTC (rev 1288908)
+++ PKGBUILD 2022-08-30 17:51:07 UTC (rev 1288909)
@@ -7,13 +7,20 @@
pkgbase=lib32-libxml2
pkgname=(lib32-libxml2)
pkgver=2.10.2
-pkgrel=1
+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-zlib lib32-xz lib32-icu libxml2)
-makedepends=(git)
+depends=(
+ lib32-icu
+ lib32-xz
+ lib32-zlib
+ libxml2
+)
+makedepends=(
+ git
+)
options=(debug)
_commit=21b24b51608d471bb9f7c4225e23d0db2acecc52 # tags/v2.10.2^0
source=("git+https://gitlab.gnome.org/GNOME/libxml2.git#commit=$_commit")
@@ -21,7 +28,7 @@
pkgver() {
cd libxml2
- git describe --tags | sed 's/-rc/rc/;s/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+ git describe --tags | sed 's/-rc/rc/;s/^v//;s/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
@@ -40,11 +47,14 @@
./configure \
--prefix=/usr \
--libdir=/usr/lib32 \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
--with-threads \
--without-history \
--without-python \
- --with-icu
- sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool
+ --with-icu \
+ --disable-static
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
More information about the arch-commits
mailing list