APKBUILD 1.52 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.3
6
pkgrel=1
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"
12
depends_dev="zlib-dev libressl-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.3:
#     - CVE-2016-7167
20 21
#   7.50.2:
#     - CVE-2016-7141
22 23 24 25 26 27 28 29
#   7.50.1:
#     - CVE-2016-5419
#     - CVE-2016-5420
#     - CVE-2016-5421
#   7.36.0:
#     - CVE-2014-0138
#     - CVE-2014-0139

30
builddir="$srcdir/$pkgname-$pkgver"
31

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

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

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

59 60 61
md5sums="bd177fd6deecce00cfa7b5916d831c5e  curl-7.50.3.tar.bz2"
sha256sums="7b7347d976661d02c84a1f4d6daf40dee377efdc45b9e2c77dedb8acf140d8ec  curl-7.50.3.tar.bz2"
sha512sums="59012f0d9abd38d00e0b2db0cd5d8b513c08000354d31e7318007b688dc1eb71a0ac71a13acd40b0becc6199299091697b448d2e6895f90e103a23cd23f7f621  curl-7.50.3.tar.bz2"