APKBUILD 830 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
pkgver=7.21.7
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 11
depends_dev="zlib-dev openssl-dev"
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
	./configure --prefix=/usr \
		--mandir=/usr/share/man \
		--without-libidn \
Natanael Copa's avatar
Natanael Copa committed
31
		--enable-ipv6 \
32
		--disable-ldap
Carlo Landmeter's avatar
Carlo Landmeter committed
33
	make || return 1
Natanael Copa's avatar
Natanael Copa committed
34
}
35

Natanael Copa's avatar
Natanael Copa committed
36
package() {
Carlo Landmeter's avatar
Carlo Landmeter committed
37
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
38
	make DESTDIR="$pkgdir" install
Carlo Landmeter's avatar
Carlo Landmeter committed
39 40
}

Natanael Copa's avatar
Natanael Copa committed
41
md5sums="5f6d50c4d4ee38c57fe37e3cff75adbd  curl-7.21.7.tar.bz2"