# Maintainer: Natanael Copa pkgname=curl pkgver=7.21.5 pkgrel=1 pkgdesc="An URL retrival utility and library" url="http://curl.haxx.se" arch="all" license="MIT" depends= depends_dev="zlib-dev openssl-dev" makedepends="$depends_dev" source="http://curl.haxx.se/download/curl-$pkgver.tar.bz2 curl-version.patch" subpackages="$pkgname-doc $pkgname-dev" _builddir="$srcdir/$pkgname-$pkgver" prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure --prefix=/usr \ --mandir=/usr/share/man \ --without-libidn \ --enable-ipv6 \ --disable-ldap make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install } md5sums="dadd6353c9407161ddd62c0943718d59 curl-7.21.5.tar.bz2 e49c54f1890f380e2617dbd58600fe6e curl-version.patch"