APKBUILD 649 Bytes
Newer Older
1
# Maintainer: Carlo Landmeter <clandmeter at gmail.com>
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=0
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=
10
makedepends="zlib-dev openssl-dev"
Carlo Landmeter's avatar
Carlo Landmeter committed
11
source="http://curl.haxx.se/download/curl-$pkgver.tar.bz2"
Carlo Landmeter's avatar
Carlo Landmeter committed
12 13
subpackages="$pkgname-doc $pkgname-dev"

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

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

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

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