37 lines
810 B
Python
37 lines
810 B
Python
from lib import cpp
|
|
from lib.make import *
|
|
|
|
version("1.2025.6.5")
|
|
description("The iputils package is set of small old utilities for Linux networking.")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_managed("github://iputils/iputils#20250605")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/meson")
|
|
builddep("linux-dev @target")
|
|
builddep("libcap-dev @target")
|
|
builddep("libintl-dev @target")
|
|
builddep("gettext")
|
|
builddep("libxslt-tools")
|
|
|
|
|
|
def build():
|
|
cpp.meson_setup([
|
|
f"--prefix={get_prefix('iputils')}",
|
|
"-DUSE_CAP=true",
|
|
"-DUSE_IDN=false",
|
|
"-DUSE_GETTEXT=true",
|
|
])
|
|
cpp.meson_compile()
|
|
cpp.meson_install()
|
|
|
|
on_build(build)
|
|
|
|
|
|
package("iputils")
|
|
dep("semi-libc @same-arch")
|
|
dep("libcap @same-arch")
|
|
provide("ping")
|
|
provide("arping")
|
|
cpp.use_auto_pack(["bin"])
|