updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / curl-git / PKGBUILD
blob8b84eda75d0f9a0345d6a2ae61b105308385ef4c
1 # Maintainer: Dave Reisner <d@falconindy.com>
3 pkgname=curl-git
4 pkgver=20110509
5 pkgrel=1
6 pkgdesc="Curl is a tool and libcurl is a library for transferring data with URL syntax."
7 arch=('i686' 'x86_64')
8 url="http://curl.haxx.se/"
9 license=('MIT')
10 depends=('zlib' 'openssl' 'libidn' 'bash' 'ca-certificates')
11 makedepends=('git')
12 provides=('curl=7.21.6')
13 conflicts=('curl')
14 options=('!libtool')
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"
22 _gitname="curl"
24 build() {
25   cd "$srcdir"
26   msg "Connecting to GIT server...."
28   if [[ -d $_gitname ]] ; then
29     cd $_gitname && git pull origin
30     msg "The local files are updated."
31   else
32     git clone $_gitroot $_gitname
33   fi
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"
42   ./buildconf
43   ./configure \
44       --prefix=/usr \
45       --mandir=/usr/share/man \
46       --disable-ldap \
47       --disable-ldaps \
48       --enable-ipv6 \
49       --enable-manual \
50       --enable-threaded-resolver \
51       --enable-versioned-symbols \
52       --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt \
53       --with-libidn \
54       --with-random=/dev/urandom
55   make
59 package() {
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"