APKBUILD 672 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.3
Natanael Copa's avatar
Natanael Copa committed
4
pkgrel=1
Carlo Landmeter's avatar
Carlo Landmeter committed
5 6
pkgdesc="An URL retrival utility and library"
url="http://curl.haxx.se"
Natanael Copa's avatar
Natanael Copa committed
7
arch="x86 x86_64"
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 22
	./configure --prefix=/usr \
		--mandir=/usr/share/man \
		--without-libidn \
		--disable-ldap
Carlo Landmeter's avatar
Carlo Landmeter committed
23
	make || return 1
Natanael Copa's avatar
Natanael Copa committed
24
}
25

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

Natanael Copa's avatar
Natanael Copa committed
31
md5sums="5b57fee22090b5c43a6886fdd35af2ce  curl-7.21.3.tar.bz2"