aboutsummaryrefslogtreecommitdiffstats
path: root/main/c-ares/APKBUILD
blob: 54284b4876abf6ea4b294b4f982a65b931ddbf60 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=c-ares
pkgver=1.10.0
pkgrel=1
pkgdesc="An asynchronously DNS/names resolver library"
url="http://c-ares.haxx.se/"
arch="all"
license="MIT"
depends=""
makedepends=""
subpackages="$pkgname-doc $pkgname-dev"
source="http://c-ares.haxx.se/download/$pkgname-$pkgver.tar.gz"

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

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

package() {
	cd "$_builddir"
	make -j1 DESTDIR="$pkgdir" install || 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"