APKBUILD 683 Bytes
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 4
pkgver=7.21.5
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 11
depends_dev="zlib-dev openssl-dev"
makedepends="$depends_dev"
Carlo Landmeter's avatar
Carlo Landmeter 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"

Carlo Landmeter's avatar
Carlo Landmeter committed
17
build() {
Carlo Landmeter's avatar
Carlo Landmeter committed
18
	cd "$_builddir"
19 20 21
	./configure --prefix=/usr \
		--mandir=/usr/share/man \
		--without-libidn \
Natanael Copa's avatar
Natanael Copa committed
22
		--enable-ipv6 \
23
		--disable-ldap
Carlo Landmeter's avatar
Carlo Landmeter committed
24
	make || return 1
Natanael Copa's avatar
Natanael Copa committed
25
}
26

Natanael Copa's avatar
Natanael Copa committed
27
package() {
Carlo Landmeter's avatar
Carlo Landmeter committed
28
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
29
	make DESTDIR="$pkgdir" install
Carlo Landmeter's avatar
Carlo Landmeter committed
30 31
}

Natanael Copa's avatar
Natanael Copa committed
32
md5sums="dadd6353c9407161ddd62c0943718d59  curl-7.21.5.tar.bz2"