39 lines
728 B
Python
39 lines
728 B
Python
import os
|
|
import shutil
|
|
|
|
from lib import cpp
|
|
from lib.make import *
|
|
|
|
version("7.1.0")
|
|
source_git("https://git.kernel.org/pub/scm/network/iproute2/iproute2.git", "v7.1.0")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/autotools")
|
|
builddep("git")
|
|
|
|
|
|
def build():
|
|
cpp.configure()
|
|
cpp.make()
|
|
cpp.make_install()
|
|
|
|
|
|
on_build(build)
|
|
|
|
|
|
def pack_iproute2(composer):
|
|
composer.makedirs("lib/iproute2")
|
|
composer.makedir("share")
|
|
composer.add_dir("sbin", "bin")
|
|
composer.add_dir("share/iproute2", "share/iproute2")
|
|
composer.add_dir("lib/tc", "lib/iproute2/tc")
|
|
|
|
|
|
package("iproute2")
|
|
dep("semi-libc @same-arch")
|
|
on_pack(pack_iproute2)
|
|
|
|
package("iproute2-dev")
|
|
dep("semi-libc @same-arch")
|
|
cpp.use_auto_pack(["dev"])
|