# Maintainer: Natanael Copa pkgname=curl pkgver=7.27.0 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 libssh2-dev" makedepends="$depends_dev" source="http://curl.haxx.se/download/curl-$pkgver.tar.bz2" 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 || return 1 rm "$pkgdir"/usr/lib/*.la || return 1 } md5sums="11fcbfc0de9c12512e607e7d72d500a0 curl-7.27.0.tar.bz2"