blob: 71a7999094fa0c4d7be8cb9c5fba2d8743219f90 (
plain) (
blame)
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
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=c-ares
pkgver=1.18.1
pkgrel=1
pkgdesc="Asynchronous DNS/name resolver library"
url="https://c-ares.org/"
arch="all"
options="!checkroot"
license="MIT"
depends=""
makedepends="cmake"
subpackages="$pkgname-doc $pkgname-dev"
source="https://c-ares.org/download/$pkgname-$pkgver.tar.gz"
build() {
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
-DCARES_BUILD_TESTS=ON \
-DCMAKE_C_FLAGS="$CFLAGS" \
.
make
}
check() {
bin/arestest --gtest_filter=-*.Live*
}
package() {
make -j1 DESTDIR="$pkgdir" install
}
sha512sums="1276ec0799916019f8c0af6b55a139701bd15e0ca4a00811d07963893978bc96c107b980f0fd49f81aa70bc8b3b8cd671195ba357c390772d4c2c5643c50c5a5 c-ares-1.18.1.tar.gz"
|