mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-02-03 03:07:16 +08:00
added lib32-libxml2 (with --without-python)
This commit is contained in:
parent
fc7045b9c8
commit
5a0168a9dc
42
lib32-libxml2/PKGBUILD
Normal file
42
lib32-libxml2/PKGBUILD
Normal file
@ -0,0 +1,42 @@
|
||||
# Lib32 Packages for Chakra, part of chakra-project.org
|
||||
#
|
||||
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
||||
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
||||
|
||||
_pkgbasename=libxml2
|
||||
pkgname=lib32-$_pkgbasename
|
||||
pkgver=2.7.7
|
||||
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)
|
||||
options=('!libtool')
|
||||
url="http://www.xmlsoft.org/"
|
||||
source=(ftp://ftp.xmlsoft.org/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.gz
|
||||
largefile64.patch)
|
||||
md5sums=('9abc9959823ca9ff904f1fbcf21df066'
|
||||
'5ad4915665608ebfa5b89f7908467a72')
|
||||
|
||||
build() {
|
||||
export CC="gcc -m32"
|
||||
export CXX="g++ -m32"
|
||||
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
||||
|
||||
cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
||||
# patch -Np1 -i "${srcdir}/shared_library_versionning.patch"
|
||||
# patch -Np1 -i "${srcdir}/largefile64.patch" || return 1
|
||||
autoreconf -fi
|
||||
./configure --prefix=/usr --without-python --with-threads --with-history --libdir=/usr/lib32
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
||||
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"
|
||||
}
|
12
lib32-libxml2/largefile64.patch
Normal file
12
lib32-libxml2/largefile64.patch
Normal file
@ -0,0 +1,12 @@
|
||||
--- libxml2-2.6.32.dfsg.orig/libxml.h
|
||||
+++ libxml2-2.6.32.dfsg/libxml.h
|
||||
@@ -13,6 +13,9 @@
|
||||
#ifndef _LARGEFILE_SOURCE
|
||||
#define _LARGEFILE_SOURCE
|
||||
#endif
|
||||
+#ifndef _LARGEFILE64_SOURCE
|
||||
+#define _LARGEFILE64_SOURCE
|
||||
+#endif
|
||||
#ifndef _FILE_OFFSET_BITS
|
||||
#define _FILE_OFFSET_BITS 64
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user