1 # $Id: PKGBUILD 60263 2011-12-08 19:46:25Z bluewind $
2 # Maintainer: Florian Pritz <flo@xssn.at>
5 pkgname=lib32-$_pkgbasename
8 pkgdesc="An URL retrieval utility and library (32-bit)"
10 url="http://curl.haxx.se"
12 depends=('lib32-zlib' 'lib32-openssl' 'bash' 'ca-certificates' 'lib32-libssh2' $_pkgbasename)
13 makedepends=(gcc-multilib)
15 source=("http://curl.haxx.se/download/${_pkgbasename}-${pkgver}.tar.bz2")
16 md5sums=('0296d3196b4bf82c896a869b38dbc5f2')
22 export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
24 cd ${srcdir}/${_pkgbasename}-${pkgver}
27 --with-random=/dev/urandom \
29 --mandir=/usr/share/man \
30 --disable-dependency-tracking \
35 --enable-versioned-symbols \
36 --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt \
37 --with-random=/dev/urandom \
40 --enable-threaded-resolver
45 cd ${srcdir}/${_pkgbasename}-${pkgver}
47 make DESTDIR=${pkgdir} install
49 rm -rf "${pkgdir}"/usr/{share,bin}
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"