Merge pull request 'feat: add package iputils' (#31) from sisungo/ports:iputils into main
Reviewed-on: #31
This commit was merged in pull request #31.
This commit is contained in:
commit
ff54f757c8
1 file changed
+36
@@ -0,0 +1,36 @@
|
||||
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"])
|
||||
Reference in new issue
Block a user