APKBUILD 1.18 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
Carlo Landmeter's avatar
Carlo Landmeter committed
2
pkgname=curl
Natanael Copa's avatar
Natanael Copa committed
3
pkgver=7.33.0
Natanael Copa's avatar
Natanael Copa committed
4
pkgrel=0
Carlo Landmeter's avatar
Carlo Landmeter committed
5 6
pkgdesc="An URL retrival utility and library"
url="http://curl.haxx.se"
7
arch="all"
Carlo Landmeter's avatar
Carlo Landmeter committed
8
license="MIT"
Natanael Copa's avatar
Natanael Copa committed
9
depends=
Natanael Copa's avatar
Natanael Copa committed
10
depends_dev="zlib-dev openssl-dev libssh2-dev"
Natanael Copa's avatar
Natanael Copa committed
11
makedepends="$depends_dev"
Natanael Copa's avatar
Natanael Copa committed
12
source="http://curl.haxx.se/download/curl-$pkgver.tar.bz2"
Carlo Landmeter's avatar
Carlo Landmeter committed
13 14
subpackages="$pkgname-doc $pkgname-dev"

Carlo Landmeter's avatar
Carlo Landmeter committed
15 16
_builddir="$srcdir/$pkgname-$pkgver"

17 18 19 20 21 22 23 24 25
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
26
build() {
Carlo Landmeter's avatar
Carlo Landmeter committed
27
	cd "$_builddir"
28 29 30 31
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
32 33
		--mandir=/usr/share/man \
		--without-libidn \
Natanael Copa's avatar
Natanael Copa committed
34
		--enable-ipv6 \
35 36
		--disable-ldap \
		|| return 1
Carlo Landmeter's avatar
Carlo Landmeter committed
37
	make || return 1
Natanael Copa's avatar
Natanael Copa committed
38
}
39

Natanael Copa's avatar
Natanael Copa committed
40
package() {
Carlo Landmeter's avatar
Carlo Landmeter committed
41
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
42 43
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
Carlo Landmeter's avatar
Carlo Landmeter committed
44 45
}

Natanael Copa's avatar
Natanael Copa committed
46 47 48
md5sums="57409d6bf0bd97053b8378dbe0cadcef  curl-7.33.0.tar.bz2"
sha256sums="0afde4cd949e2658eddc3cda675b19b165eea1af48ac5f3e1ec160792255d1b3  curl-7.33.0.tar.bz2"
sha512sums="13f61e8255859f3d1138bf7cc935bda90af5f51103f1660b9e9cc6dd63d37b7672752900f3a76f8c80d47a7c02061077c6417d53617576f4030e180552b75076  curl-7.33.0.tar.bz2"