[arch-commits] Commit in lib32-libxml2/trunk (PKGBUILD)
Laurent Carlier
lcarlier at archlinux.org
Sat Jun 24 05:20:06 UTC 2017
Date: Saturday, June 24, 2017 @ 05:20:05
Author: lcarlier
Revision: 240737
upgpkg: lib32-libxml2 2.9.4+16+g07418011-1
Sync with extra
Modified:
lib32-libxml2/trunk/PKGBUILD
----------+
PKGBUILD | 26 ++++++++++++++++----------
1 file changed, 16 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-06-24 03:44:47 UTC (rev 240736)
+++ PKGBUILD 2017-06-24 05:20:05 UTC (rev 240737)
@@ -4,34 +4,40 @@
_pkgbasename=libxml2
pkgname=lib32-$_pkgbasename
-pkgver=2.9.3
+pkgver=2.9.4+16+g07418011
pkgrel=1
pkgdesc="XML parsing library, version 2 (32-bit)"
arch=(x86_64)
license=('custom')
-depends=('lib32-zlib>=1.2.4' 'lib32-readline>=6.1' 'lib32-ncurses>=5.7' $_pkgbasename)
-makedepends=(gcc-multilib)
+depends=('lib32-zlib' 'lib32-readline' 'lib32-ncurses' 'lib32-icu' 'libxml2')
+makedepends=(gcc-multilib git)
options=('!libtool')
url="http://www.xmlsoft.org/"
-source=(ftp://ftp.xmlsoft.org/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.gz)
-md5sums=('daece17e045f1c107610e137ab50c179')
+_commit=074180119fc90d5fd04ef9e8a5ee1910d6f9ad8e # master
+source=(git+https://git.gnome.org/browse/libxml2#commit=$_commit)
+md5sums=(SKIP)
++pkgver() {
+ cd "${srcdir}/${_pkgbasename}"
+ git describe --long | sed -e 's/-/+/g' -e 's/^v//'
+}
+
build() {
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
- cd "${srcdir}/${_pkgbasename}-${pkgver}"
+ cd "${srcdir}/${_pkgbasename}"
autoreconf -fi
- ./configure --prefix=/usr --with-threads --with-history --libdir=/usr/lib32 --without-lzma
-
- sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' -e 's/ if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then/ func_append compile_command " -Wl,-O1,--as-needed"\n func_append finalize_command " -Wl,-O1,--as-needed"\n\0/' libtool
+ ./configure --prefix=/usr --with-threads --with-history --with-icu --libdir=/usr/lib32 --without-lzma
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool
+
make
}
package() {
- cd "${srcdir}/${_pkgbasename}-${pkgver}"
+ cd "${srcdir}/${_pkgbasename}"
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}"/usr/{include,share,bin} "$pkgdir/usr/lib32/xml2Conf.sh"
More information about the arch-commits
mailing list