summaryrefslogtreecommitdiff
path: root/system/c-ares/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'system/c-ares/APKBUILD')
-rw-r--r--system/c-ares/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/system/c-ares/APKBUILD b/system/c-ares/APKBUILD
new file mode 100644
index 000000000..564b70ce9
--- /dev/null
+++ b/system/c-ares/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=c-ares
+pkgver=1.16.1
+pkgrel=0
+pkgdesc="Asynchronous DNS/name resolver library"
+url="https://c-ares.haxx.se/"
+arch="all"
+options="!checkroot"
+license="MIT"
+depends=""
+makedepends=""
+subpackages="$pkgname-doc $pkgname-dev"
+source="https://c-ares.haxx.se/download/$pkgname-$pkgver.tar.gz"
+
+build() {
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --enable-shared
+ make
+}
+
+check() {
+ make -C test check
+}
+
+package() {
+ make -j1 DESTDIR="$pkgdir" install
+}
+
+sha512sums="4ac2a5d5c6da74eb1d6155c4eadc7127ab1b53a8d13caec41bd6172db5417a79f3ab022e77ba37d8b13da6893d7ced5fd8baf5cc3950a4154b4de8743ad31471 c-ares-1.16.1.tar.gz"