summaryrefslogtreecommitdiffstats
path: root/main/c-ares/APKBUILD
blob: 29b1e5b6af0b1a7688fff2ef5cfd39e85b1686eb (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
32
33
34
35
36
37
38
39
40
41
42
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=c-ares
pkgver=1.10.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"

prepare() {
	cd "$srcdir/$pkgname-$pkgver"
	update_config_sub || return 1
}

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

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

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

md5sums="1196067641411a75d3cbebe074fd36d8  c-ares-1.10.0.tar.gz"
sha256sums="3d701674615d1158e56a59aaede7891f2dde3da0f46a6d3c684e0ae70f52d3db  c-ares-1.10.0.tar.gz"
sha512sums="fef6945549034390ddaa03acf5509d0095e97c151e5f4047ffc32c51945a7261759228b20fdd77b9e4bf4a95f3a61bfb79bee0c66a860219debfd2916b390693  c-ares-1.10.0.tar.gz"