# Contributor: Ɓukasz Jendrysik # Maintainer: Natanael Copa pkgname=curl pkgver=7.45.0 pkgrel=1 pkgdesc="An URL retrival utility and library" url="http://curl.haxx.se" arch="all" license="MIT" depends="ca-certificates" depends_dev="zlib-dev openssl-dev libssh2-dev" makedepends="groff $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 \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --mandir=/usr/share/man \ --without-libidn \ --enable-ipv6 \ --enable-unix-sockets \ --disable-ldap \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } md5sums="62c1a352b28558f25ba6209214beadc8 curl-7.45.0.tar.bz2" sha256sums="65154e66b9f8a442b57c436904639507b4ac37ec13d6f8a48248f1b4012b98ea curl-7.45.0.tar.bz2" sha512sums="71c557c69eb8d160f74a9b76ef83a46ce33ef4e8a66a261699329583dadf10205b4ba4783f92d4e6c8724f6610ffade5b0a9f189b0a7b9169ff839dfc8980481 curl-7.45.0.tar.bz2"