6 pkgdesc="An URL retrival utility and library"
8 url="http://curl.haxx.se"
10 depends=('zlib' 'openssl-hardened=1.0.0.d' 'bash' 'ca-certificates' 'libssh2')
12 makedepends=('hardened-cc-aur')
13 replaces=('curl<=7.21.7-1')
14 conflicts=('curl=>7.21.7-1')
15 provides=('curl=7.21.7-1')
17 source=(http://curl.haxx.se/download/curl-${pkgver}.tar.bz2
20 [[ $CARCH == "x86_64" ]] && _curlbuild=curlbuild-64.h
21 [[ $CARCH == "i686" ]] && _curlbuild=curlbuild-32.h
22 md5sums=('5f6d50c4d4ee38c57fe37e3cff75adbd'
23 '751bd433ede935c8fae727377625a8ae')
30 export CC="/opt/usr/bin/hardened-cc-aur"
31 export CXX="/opt/usr/bin/hardened-c++-aur"
33 cd ${srcdir}/${pkgname}-${pkgver}
36 --with-random=/dev/urandom \
38 --mandir=/usr/share/man \
39 --disable-dependency-tracking \
44 --enable-versioned-symbols \
45 --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt \
47 --enable-threaded-resolver
53 cd "$srcdir/$pkgname-$pkgver"
55 make DESTDIR="$pkgdir" install
56 install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
57 install -Dm644 docs/libcurl/libcurl.m4 \
58 "$pkgdir/usr/share/aclocal/libcurl.m4"
59 mv "$pkgdir/usr/include/curl/curlbuild.h" "$pkgdir/usr/include/curl/$_curlbuild"
60 install -m644 "$srcdir/curlbuild.h" "$pkgdir/usr/include/curl/curlbuild.h"
61 pkgname="curl-hardened"