Commit f0944e75 authored by Xuetian Weng's avatar Xuetian Weng

update lib32-libxml2

parent 8c57d0f8
Pipeline #3881 passed with stages
in 4 minutes and 6 seconds
_pkgbasename=libxml2
pkgname=lib32-$_pkgbasename
pkgver=2.9.6+3+g5af594d8
pkgrel=1
pkgdesc="XML parsing library, version 2 (32-bit)"
pkgver=2.9.9
pkgrel=2
pkgdesc='XML parsing library, version 2 (32-bit)'
url="http://www.xmlsoft.org/"
arch=(x86_64)
license=('custom')
depends=('lib32-zlib' 'lib32-readline' 'lib32-ncurses' $_pkgbasename=$pkgver)
makedepends=('lib32-gcc-libs')
_commit=5af594d8bc55121ae454cba4d05793d1db7ff612 # master
source=(git://git.gnome.org/libxml2#commit=$_commit
http://www.w3.org/XML/Test/xmlts20080827.tar.gz)
md5sums=('SKIP'
'ae3d1ebe000a3972afa104ca7f0e1b4a')
pkgver() {
cd $_pkgbasename
git describe --long | sed -e 's/-/+/g' -e 's/^v//'
license=(MIT)
depends=(lib32-zlib lib32-readline lib32-ncurses lib32-xz lib32-icu libxml2=$pkgver)
makedepends=(git)
_commit=f8a8c1f59db355b46962577e7b74f1a1e8149dc6 # tags/v2.9.9^0
source=("git+https://git.gnome.org/browse/libxml2#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() {
......@@ -23,21 +27,26 @@ build() {
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
cd $_pkgbasename
autoreconf -fi
./configure --prefix=/usr --with-threads --with-history --libdir=/usr/lib32 --without-lzma --without-python
# added without-python : https://bugzilla.redhat.com/show_bug.cgi?id=139911
cd ${_pkgbasename}
./configure \
--prefix=/usr \
--with-threads \
--with-history \
--with-icu \
--without-python \
--libdir=/usr/lib32
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool
make
}
package() {
cd $_pkgbasename
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:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment