updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / lib32-curl / PKGBUILD
blob848c8d8dcfe836eb42fd12449fd871eecd51b803
1 # $Id: PKGBUILD 60263 2011-12-08 19:46:25Z bluewind $
2 # Maintainer: Florian Pritz <flo@xssn.at>
4 _pkgbasename=curl
5 pkgname=lib32-$_pkgbasename
6 pkgver=7.23.1
7 pkgrel=1
8 pkgdesc="An URL retrieval utility and library (32-bit)"
9 arch=('x86_64')
10 url="http://curl.haxx.se"
11 license=('MIT')
12 depends=('lib32-zlib' 'lib32-openssl' 'bash' 'ca-certificates' 'lib32-libssh2' $_pkgbasename)
13 makedepends=(gcc-multilib)
14 options=('!libtool')
15 source=("http://curl.haxx.se/download/${_pkgbasename}-${pkgver}.tar.bz2")
16 md5sums=('0296d3196b4bf82c896a869b38dbc5f2')
19 build() {
20   export CC="gcc -m32"
21   export CXX="g++ -m32"
22   export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
24   cd ${srcdir}/${_pkgbasename}-${pkgver}
26   ./configure \
27       --with-random=/dev/urandom \
28       --prefix=/usr \
29       --mandir=/usr/share/man \
30       --disable-dependency-tracking \
31       --enable-ipv6 \
32       --disable-ldaps \
33       --disable-ldap \
34       --disable-manual \
35       --enable-versioned-symbols \
36       --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt \
37       --with-random=/dev/urandom \
38       --without-libidn \
39       --libdir=/usr/lib32 \
40       --enable-threaded-resolver
41   make
44 package() {
45   cd ${srcdir}/${_pkgbasename}-${pkgver}
47   make DESTDIR=${pkgdir} install
49   rm -rf "${pkgdir}"/usr/{share,bin}
50   #we need curlbuild.h
51   find ${pkgdir}/usr/include/curl -type f -not -name curlbuild.h -delete
52   #now save it as curlbuild-32.h
53   mv ${pkgdir}/usr/include/curl/curlbuild.h ${pkgdir}/usr/include/curl/curlbuild-32.h
55   mkdir -p "$pkgdir/usr/share/licenses"
56   ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"