APKBUILD 1.45 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
Natanael Copa's avatar
Natanael Copa committed
5
pkgver=7.50.0
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
_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
}
27

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

Natanael Copa's avatar
Natanael Copa committed
44
package() {
Carlo Landmeter's avatar
Carlo Landmeter committed
45
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
46
	make DESTDIR="$pkgdir" install || return 1
Carlo Landmeter's avatar
Carlo Landmeter committed
47 48
}

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

Natanael Copa's avatar
Natanael Copa committed
55 56 57
md5sums="9e463ff8fdc1b5daa81c850c514980ec  curl-7.50.0.tar.bz2"
sha256sums="608dfe2db77f48db792c387e7791aca55a25f0b42385707ad927164199ecfa9a  curl-7.50.0.tar.bz2"
sha512sums="f431c9895d260ef77dcff29e868c8d5180800d12f2bd89da8942422cec454432717e6ede6484d6b6711cb2bdd85e7e8f6ae23c59fd1f5b69acd569570c8efdd8  curl-7.50.0.tar.bz2"