35 lines
687 B
Python
35 lines
687 B
Python
from lib import cpp
|
|
from lib.make import *
|
|
|
|
version("1.34.6")
|
|
description("A C library for asynchronous DNS requests")
|
|
source_url(
|
|
"https://github.com/c-ares/c-ares/releases/download/v1.34.6/c-ares-1.34.6.tar.gz"
|
|
)
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/autotools")
|
|
|
|
|
|
def build():
|
|
cpp.configure(
|
|
[
|
|
"--prefix=/",
|
|
f"--libdir={get_prefix('libcares')}/lib",
|
|
f"--includedir={get_prefix('libcares-dev')}/include",
|
|
]
|
|
)
|
|
cpp.make()
|
|
cpp.make_install()
|
|
|
|
|
|
on_build(build)
|
|
|
|
package("libcares")
|
|
dep("semi-libc @same-arch")
|
|
cpp.use_auto_pack(["lib"])
|
|
|
|
package("libcares-dev")
|
|
dep("libcares (same)")
|
|
cpp.use_auto_pack(["dev"])
|