summaryrefslogtreecommitdiffstats
path: root/main/c-ares/APKBUILD
blob: 39546f54816846e922f65553160fded874614892 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=c-ares
pkgver=1.9.0
pkgrel=0
pkgdesc="An asynchronously DNS/names resolver library"
url="http://c-ares.haxx.se/"
arch="all"
license="GPL"
depends=
makedepends=
subpackages="$pkgname-doc $pkgname-dev"
source="http://c-ares.haxx.se/download/${pkgname}-${pkgver}.tar.gz"

build() {
	cd "$srcdir/$pkgname-$pkgver"

	./configure --prefix=/usr \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--enable-shared
	make || return 1
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
}

md5sums="c1a61a5a9db15129ba538f724de50ded  c-ares-1.9.0.tar.gz"