APKBUILD 1.68 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
Carlo Landmeter's avatar
Carlo Landmeter committed
2
pkgname=curl
Natanael Copa's avatar
Natanael Copa committed
3
pkgver=7.34.0
Natanael Copa's avatar
Natanael Copa committed
4
pkgrel=1
Carlo Landmeter's avatar
Carlo Landmeter committed
5 6
pkgdesc="An URL retrival utility and library"
url="http://curl.haxx.se"
7
arch="all"
Carlo Landmeter's avatar
Carlo Landmeter committed
8
license="MIT"
9
depends="ca-certificates"
Natanael Copa's avatar
Natanael Copa committed
10
depends_dev="zlib-dev openssl-dev libssh2-dev"
Natanael Copa's avatar
Natanael Copa committed
11
makedepends="$depends_dev"
Natanael Copa's avatar
Natanael Copa committed
12 13
source="http://curl.haxx.se/download/curl-$pkgver.tar.bz2
	0001-connect-Try-all-addresses-in-first-connection-attemp.patch"
Carlo Landmeter's avatar
Carlo Landmeter committed
14 15
subpackages="$pkgname-doc $pkgname-dev"

Carlo Landmeter's avatar
Carlo Landmeter committed
16 17
_builddir="$srcdir/$pkgname-$pkgver"

18 19 20 21 22 23 24 25 26
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
}
Carlo Landmeter's avatar
Carlo Landmeter committed
27
build() {
Carlo Landmeter's avatar
Carlo Landmeter committed
28
	cd "$_builddir"
29 30 31 32
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
33 34
		--mandir=/usr/share/man \
		--without-libidn \
Natanael Copa's avatar
Natanael Copa committed
35
		--enable-ipv6 \
36 37
		--disable-ldap \
		|| return 1
Carlo Landmeter's avatar
Carlo Landmeter committed
38
	make || return 1
Natanael Copa's avatar
Natanael Copa committed
39
}
40

Natanael Copa's avatar
Natanael Copa committed
41
package() {
Carlo Landmeter's avatar
Carlo Landmeter committed
42
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
43 44
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
Carlo Landmeter's avatar
Carlo Landmeter committed
45 46
}

Natanael Copa's avatar
Natanael Copa committed
47 48 49 50 51 52
md5sums="88491df2bb32e9146e776ae6ac2f8327  curl-7.34.0.tar.bz2
ee755b0e886207fc1e8154e426c46ca7  0001-connect-Try-all-addresses-in-first-connection-attemp.patch"
sha256sums="10beade56b48311499e444783df3413405b22f20a147ed4a1d8a8125f1cc829b  curl-7.34.0.tar.bz2
60502a73d69abdc11444ada436bc46157470f68b0af0eaec5f4fc6322d25e37c  0001-connect-Try-all-addresses-in-first-connection-attemp.patch"
sha512sums="7158521e5d75f3f7e0373bed7a4e71351699239f7109ef43363d6f09c7bf6d65b64c3b54b62e65c709761cba2e08e35b728ac7458fbd68fe249b8471cce86971  curl-7.34.0.tar.bz2
fdbf372c912b39c910c9b3e9f3efb3038280b9e9e48b613790915ea9579f2d1ab373e6e6de939ff81ac87e557177df02fabdb6f4a9ca38849e3cc84fddc054f3  0001-connect-Try-all-addresses-in-first-connection-attemp.patch"