APKBUILD 1.25 KB
Newer Older
1
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
Natanael Copa's avatar
Natanael Copa committed
2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
Carlo Landmeter's avatar
Carlo Landmeter committed
3
pkgname=curl
4
pkgver=7.45.0
V Krishn's avatar
V Krishn committed
5
pkgrel=1
Carlo Landmeter's avatar
Carlo Landmeter committed
6 7
pkgdesc="An URL retrival utility and library"
url="http://curl.haxx.se"
8
arch="all"
Carlo Landmeter's avatar
Carlo Landmeter committed
9
license="MIT"
10
depends="ca-certificates"
Natanael Copa's avatar
Natanael Copa committed
11
depends_dev="zlib-dev openssl-dev libssh2-dev"
12
makedepends="groff $depends_dev"
Natanael Copa's avatar
Natanael Copa committed
13
source="http://curl.haxx.se/download/curl-$pkgver.tar.bz2"
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 \
V Krishn's avatar
V Krishn committed
36
		--enable-unix-sockets \
37 38
		--disable-ldap \
		|| return 1
Carlo Landmeter's avatar
Carlo Landmeter committed
39
	make || return 1
Natanael Copa's avatar
Natanael Copa committed
40
}
41

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

47 48 49
md5sums="62c1a352b28558f25ba6209214beadc8  curl-7.45.0.tar.bz2"
sha256sums="65154e66b9f8a442b57c436904639507b4ac37ec13d6f8a48248f1b4012b98ea  curl-7.45.0.tar.bz2"
sha512sums="71c557c69eb8d160f74a9b76ef83a46ce33ef4e8a66a261699329583dadf10205b4ba4783f92d4e6c8724f6610ffade5b0a9f189b0a7b9169ff839dfc8980481  curl-7.45.0.tar.bz2"