31 lines
656 B
Python
31 lines
656 B
Python
from lib.make import *
|
|
from lib import cpp
|
|
|
|
|
|
version("3.5.2")
|
|
description("an interactive process viewer")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_url("https://github.com/htop-dev/htop/releases/download/3.5.2/htop-3.5.2.tar.xz")
|
|
|
|
builddep("shortcut/autotools")
|
|
builddep("shortcut/c")
|
|
builddep(f"libncurses-dev @{arch.get_target()}")
|
|
builddep(f"linux-dev @{arch.get_target()}")
|
|
|
|
|
|
def build():
|
|
cpp.configure([
|
|
f"--prefix={get_prefix('htop')}",
|
|
"--enable-unicode",
|
|
])
|
|
cpp.make()
|
|
cpp.make_install()
|
|
|
|
on_build(build)
|
|
|
|
|
|
package("htop")
|
|
dep("libncurses @same-arch")
|
|
dep("semi-libc @same-arch")
|
|
cpp.use_auto_pack(["bin"])
|