lib32/lib32-libxml2/PKGBUILD
Samir 850fefed49 added $_pkgbasename=$pkgver to most packages
This has been scripted, some might have been missed some PKGBUILDS
might be broken, so please chock when building.
2012-10-31 14:53:16 +00:00

43 lines
1.3 KiB
Bash

# 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.8
pkgrel=2
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=$pkgver)
makedepends=(gcc-multilib)
options=('!libtool')
url="http://www.xmlsoft.org/"
source=(ftp://ftp.xmlsoft.org/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.gz
shared_library_versionning.patch)
md5sums=('8127a65e8c3b08856093099b52599c86'
'84aeb7c6db023eae044e95d9211dba53')
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"
autoreconf -fi
./configure --prefix=/usr --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"
}