From 6332c5643d36e42ad553f98dc25962285db4a138 Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Mon, 6 Aug 2012 17:36:42 -0500
Subject: curl 7.26

---
 abs/core/curl/PKGBUILD | 80 +++++++++++++++++++++++++++++---------------------
 1 file changed, 47 insertions(+), 33 deletions(-)

diff --git a/abs/core/curl/PKGBUILD b/abs/core/curl/PKGBUILD
index 3501d65..f318660 100644
--- a/abs/core/curl/PKGBUILD
+++ b/abs/core/curl/PKGBUILD
@@ -1,50 +1,64 @@
-# $Id: PKGBUILD 95264 2010-10-17 20:54:32Z ibiru $
+# $Id: PKGBUILD 160000 2012-05-27 15:59:46Z dreisner $
+# Maintainer: Dave Reisner <dreisner@archlinux.org>
+# Contributor: Angel Velasquez <angvp@archlinux.org>
 # Contributor: Eric Belanger <eric@archlinux.org>
 # Contributor: Lucien Immink <l.immink@student.fnt.hvu.nl>
-# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
+# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
 
 pkgname=curl
-pkgver=7.21.2
-pkgrel=3
+pkgver=7.26.0
+pkgrel=1
 pkgdesc="An URL retrival utility and library"
 arch=('i686' 'x86_64')
 url="http://curl.haxx.se"
 license=('MIT')
-depends=('zlib' 'openssl' 'bash' 'ca-certificates')
+depends=('ca-certificates' 'libssh2' 'openssl' 'zlib')
 options=('!libtool')
-source=(http://curl.haxx.se/download/${pkgname}-${pkgver}.tar.bz2
+source=("http://curl.haxx.se/download/$pkgname-$pkgver.tar.gz"{,.asc}
         curlbuild.h)
-md5sums=('ca96df88e044c7c25d19692ec8b250b2'
+md5sums=('3fa4d5236f2a36ca5c3af6715e837691'
+         '61b594830d5acba3c99e4af0ba39a14e'
          '751bd433ede935c8fae727377625a8ae')
 
-[[ $CARCH == "x86_64" ]] && _curlbuild=curlbuild-64.h
-[[ $CARCH == "i686" ]] && _curlbuild=curlbuild-32.h
+ptrsize=$(cpp <<<'__SIZEOF_POINTER__' | sed '/^#/d')
+case $ptrsize in
+  8) _curlbuild=curlbuild-64.h ;;
+  4) _curlbuild=curlbuild-32.h ;;
+  *) error "unknown pointer size for architecture: %s bytes" "$ptrsize"
+    exit 1
+    ;;
+esac
+
 build() {
-    cd ${srcdir}/${pkgname}-${pkgver}
-
-    ./configure \
-        --with-random=/dev/urandom \
-        --prefix=/usr \
-        --mandir=/usr/share/man \
-        --disable-dependency-tracking \
-        --enable-ipv6 \
-        --disable-ldaps \
-        --disable-ldap \
-        --enable-manual \
-        --enable-versioned-symbols \
-        --with-ca-path=/etc/ssl/certs \
-        --without-libidn
-    make
+  cd "$pkgname-$pkgver"
+
+  ./configure \
+      --prefix=/usr \
+      --mandir=/usr/share/man \
+      --disable-dependency-tracking \
+      --disable-ldap \
+      --disable-ldaps \
+      --enable-ipv6 \
+      --enable-manual \
+      --enable-versioned-symbols \
+      --enable-threaded-resolver \
+      --without-libidn \
+      --with-random=/dev/urandom \
+      --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt
+
+  make
 }
 
 package() {
-    cd ${srcdir}/${pkgname}-${pkgver}
-
-    make DESTDIR=${pkgdir} install
-    install -Dm644 COPYING \
-        ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
-    install -Dm644 docs/libcurl/libcurl.m4 \
-        ${pkgdir}/usr/share/aclocal/libcurl.m4
-    mv "${pkgdir}/usr/include/curl/curlbuild.h" "${pkgdir}/usr/include/curl/${_curlbuild}"
-    install -m 644 ${srcdir}/curlbuild.h "${pkgdir}/usr/include/curl/curlbuild.h"
+  cd "$pkgname-$pkgver"
+
+  make DESTDIR="$pkgdir" install
+
+  # license
+  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+
+  # devel
+  install -Dm644 docs/libcurl/libcurl.m4 "$pkgdir/usr/share/aclocal/libcurl.m4"
+  mv "$pkgdir/usr/include/curl/curlbuild.h" "$pkgdir/usr/include/curl/$_curlbuild"
+  install -m644 "$srcdir/curlbuild.h" "$pkgdir/usr/include/curl/curlbuild.h"
 }
-- 
cgit v0.12