24 lines
486 B
Python
24 lines
486 B
Python
from lib import arch, cpp
|
|
from lib.make import *
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/autotools")
|
|
builddep(f"libncurses-dev @{arch.get_target()}")
|
|
|
|
version("704")
|
|
source_url("https://www.greenwoodsoftware.com/less/less-704.tar.gz")
|
|
|
|
|
|
def build():
|
|
cpp.configure([f"--prefix={get_prefix('less')}", "--with-regex=posix"])
|
|
cpp.make()
|
|
cpp.make_install()
|
|
|
|
|
|
on_build(build)
|
|
|
|
package("less")
|
|
dep("semi-libc @same-arch")
|
|
dep("libncurses @same-arch")
|
|
cpp.use_auto_pack(["bin"])
|