1 # Maintainer: Dave Reisner <d@falconindy.com>
6 pkgdesc="Curl is a tool and libcurl is a library for transferring data with URL syntax."
8 url="http://curl.haxx.se/"
10 depends=('zlib' 'openssl' 'libidn' 'bash' 'ca-certificates')
12 provides=('curl=7.21.6')
15 source=('curlbuild.h')
16 md5sums=('751bd433ede935c8fae727377625a8ae')
18 [[ $CARCH == "x86_64" ]] && _curlbuild=curlbuild-64.h
19 [[ $CARCH == "i686" ]] && _curlbuild=curlbuild-32.h
21 _gitroot="git://github.com/bagder/curl.git"
26 msg "Connecting to GIT server...."
28 if [[ -d $_gitname ]] ; then
29 cd $_gitname && git pull origin
30 msg "The local files are updated."
32 git clone $_gitroot $_gitname
35 msg "GIT checkout done or server timeout"
36 msg "Starting make..."
38 rm -rf "$srcdir/$_gitname-build"
39 cp -a "$srcdir/$_gitname" "$srcdir/$_gitname-build"
40 cd "$srcdir/$_gitname-build"
45 --mandir=/usr/share/man \
50 --enable-threaded-resolver \
51 --enable-versioned-symbols \
52 --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt \
54 --with-random=/dev/urandom
60 cd "$srcdir/$_gitname-build"
62 make DESTDIR=${pkgdir} install
63 install -Dm644 COPYING \
64 ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
65 install -Dm644 docs/libcurl/libcurl.m4 \
66 ${pkgdir}/usr/share/aclocal/libcurl.m4
67 mv "${pkgdir}/usr/include/curl/curlbuild.h" "${pkgdir}/usr/include/curl/${_curlbuild}"
68 install -m 644 ${srcdir}/curlbuild.h "${pkgdir}/usr/include/curl/curlbuild.h"