32 lines
685 B
Python
32 lines
685 B
Python
from lib import cpp
|
|
from lib.make import *
|
|
|
|
version("1.34.8")
|
|
description("A C library for asynchronous DNS requests")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_managed("github://c-ares/c-ares#v1.34.8")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/cmake")
|
|
|
|
|
|
def build():
|
|
cpp.cmake([
|
|
"-DCMAKE_INSTALL_PREFIX=/",
|
|
f"-DCMAKE_INSTALL_LIBDIR={get_prefix('libcares')}/lib",
|
|
f"-DCMAKE_INSTALL_INCLUDEDIR={get_prefix('libcares-dev')}/include",
|
|
])
|
|
cpp.ninja()
|
|
cpp.ninja_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"])
|