APKBUILD 1.6 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.1
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 18 19 20 21 22 23 24 25
# secfixes:
#   7.50.1:
#     - CVE-2016-5419
#     - CVE-2016-5420
#     - CVE-2016-5421
#   7.36.0:
#     - CVE-2014-0138
#     - CVE-2014-0139

26
_builddir="$srcdir"/$pkgname-$pkgver
27 28 29 30 31 32 33 34 35
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
}
36

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

Natanael Copa's avatar
Natanael Copa committed
53
package() {
Carlo Landmeter's avatar
Carlo Landmeter committed
54
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
55
	make DESTDIR="$pkgdir" install || return 1
Carlo Landmeter's avatar
Carlo Landmeter committed
56 57
}

58 59 60 61 62 63
libcurl() {
	pkgdesc="The multiprotocol file transfer library"
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/lib "$subpkgdir"/usr
}

64 65 66
md5sums="015f6a0217ca6f2c5442ca406476920b  curl-7.50.1.tar.bz2"
sha256sums="3c12c5f54ccaa1d40abc65d672107dcc75d3e1fcb38c267484334280096e5156  curl-7.50.1.tar.bz2"
sha512sums="94acd91fcf8ff2605e1ba2d086c2c366257b61eaf516b9ea44e574e315feb5b30f6e47d89051f259e026ef5dd9edde5f7b15a6af9ee6a38f641da354e1e677b1  curl-7.50.1.tar.bz2"