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 5
pkgver=7.46.0
pkgrel=0
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="9979f989a2a9930d10f1b3deeabc2148  curl-7.46.0.tar.bz2"
sha256sums="b7d726cdd8ed4b6db0fa1b474a3c59ebbbe4dcd4c61ac5e7ade0e0270d3195ad  curl-7.46.0.tar.bz2"
sha512sums="ff47216a2b4a2d14a2e98e0e87867897a9bf059c58d2d73aa47a69ccd94977367e2de15bea641abfb00e236a8b016ee869675c2cc702f7919da5fe612bd8b5e1  curl-7.46.0.tar.bz2"