APKBUILD 1.49 KB
Newer Older
1
# Contributor: Valery Kartel <valery.kartel@gmail.com>
2
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
Natanael Copa's avatar
Natanael Copa committed
3
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
Carlo Landmeter's avatar
Carlo Landmeter committed
4
pkgname=curl
5
pkgver=7.50.2
Natanael Copa's avatar
Natanael Copa committed
6
pkgrel=0
Carlo Landmeter's avatar
Carlo Landmeter committed
7 8
pkgdesc="An URL retrival utility and library"
url="http://curl.haxx.se"
9
arch="all"
Carlo Landmeter's avatar
Carlo Landmeter committed
10
license="MIT"
11
depends="ca-certificates"
Natanael Copa's avatar
Natanael Copa committed
12
depends_dev="zlib-dev openssl-dev libssh2-dev"
13 14
makedepends="$depends_dev groff perl"
source="http://curl.haxx.se/download/$pkgname-$pkgver.tar.bz2"
Natanael Copa's avatar
Natanael Copa committed
15
subpackages="$pkgname-doc $pkgname-dev libcurl"
Carlo Landmeter's avatar
Carlo Landmeter committed
16

17
# secfixes:
18 19
#   7.50.2:
#     - CVE-2016-7141
20 21 22 23 24 25 26 27
#   7.50.1:
#     - CVE-2016-5419
#     - CVE-2016-5420
#     - CVE-2016-5421
#   7.36.0:
#     - CVE-2014-0138
#     - CVE-2014-0139

28
builddir="$srcdir/$pkgname-$pkgver"
29

Carlo Landmeter's avatar
Carlo Landmeter committed
30
build() {
31
	cd "$builddir"
32 33 34 35
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Natanael Copa's avatar
Natanael Copa committed
36
		--enable-ipv6 \
V Krishn's avatar
V Krishn committed
37
		--enable-unix-sockets \
38 39
		--without-libidn \
		--disable-static \
40
		--disable-ldap \
41
		--with-pic \
42
		|| return 1
Carlo Landmeter's avatar
Carlo Landmeter committed
43
	make || return 1
Natanael Copa's avatar
Natanael Copa committed
44
}
45

Natanael Copa's avatar
Natanael Copa committed
46
package() {
47 48
	make DESTDIR="$pkgdir" \
		-C "$builddir" install || return 1
Carlo Landmeter's avatar
Carlo Landmeter committed
49 50
}

51 52 53 54 55 56
libcurl() {
	pkgdesc="The multiprotocol file transfer library"
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/lib "$subpkgdir"/usr
}

57 58 59
md5sums="6e161179f7af4b9f8b6ea21420132719  curl-7.50.2.tar.bz2"
sha256sums="0c72105df4e9575d68bcf43aea1751056c1d29b1040df6194a49c5ac08f8e233  curl-7.50.2.tar.bz2"
sha512sums="5db4fba920f1627e545ddf774ceaafe3afce43c85aaa8aa7842337fe6cbc031aa597d9d80457c5d52bc7a0c218de30bb29802383e1d81e3f220186212dade342  curl-7.50.2.tar.bz2"