| 1 | defpkgbuild(c-ares, |
| 2 | #:pkgname, "c-ares", |
| 3 | #:pkgver, "1.34.9", |
| 4 | #:pkgrel, 1, |
| 5 | #:pkgdesc, "Asynchronous DNS resolver library and tools", |
| 6 | #:arch, [#:x86-64, #:aarch64], |
| 7 | #:url, "https://c-ares.org/", |
| 8 | #:license, "MIT", |
| 9 | #:depends, ["musl"], |
| 10 | #:source, ["https://github.com/c-ares/c-ares/releases/download/v1.34.9/c-ares-1.34.9.tar.gz", "check.vsh"], |
| 11 | #:sha256sums, ["9364b70a12eb59a06830fb488d9357f90100dff0d98b23ea3593a183d43e6f2f", |
| 12 | "8dea544af6ecdcbe994126ac6ec654b5d76a9f951aa609d6fea6f258b1ce3191"], |
| 13 | #:build, fn() { |
| 14 | run("vinix-configure", "c-ares-1.34.9/configure", "--disable-tests", "--enable-thread-safety") |
| 15 | run("make") |
| 16 | }, |
| 17 | #:check, fn() { |
| 18 | run("v", "run", "check.vsh") |
| 19 | }, |
| 20 | #:package, fn() { |
| 21 | run("make", "install", string-append("DESTDIR=", pkgdir())) |
| 22 | run("find", pkgdir(), "-name", "*.la", "-delete") |
| 23 | run("install", "-Dm644", "c-ares-1.34.9/LICENSE.md", string-append(pkgdir(), "/usr/share/licenses/c-ares/LICENSE.md")) |
| 24 | }) |
| 25 | |