summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/c-ares/APKBUILD21
1 files changed, 11 insertions, 10 deletions
diff --git a/system/c-ares/APKBUILD b/system/c-ares/APKBUILD
index 33ef7b331..71a799909 100644
--- a/system/c-ares/APKBUILD
+++ b/system/c-ares/APKBUILD
@@ -2,30 +2,31 @@
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=c-ares
pkgver=1.18.1
-pkgrel=0
+pkgrel=1
pkgdesc="Asynchronous DNS/name resolver library"
url="https://c-ares.org/"
arch="all"
options="!checkroot"
license="MIT"
depends=""
-makedepends=""
+makedepends="cmake"
subpackages="$pkgname-doc $pkgname-dev"
source="https://c-ares.org/download/$pkgname-$pkgver.tar.gz"
build() {
- ./configure \
- --build=$CBUILD \
- --host=$CHOST \
- --prefix=/usr \
- --mandir=/usr/share/man \
- --infodir=/usr/share/info \
- --enable-shared
+ 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() {
- test/arestest --gtest_filter=-*.Live*
+ bin/arestest --gtest_filter=-*.Live*
}
package() {