Merge pull request 'feat: add package less' (#113) from sisungo/semios-packages:less into master

Reviewed-on: semios/semios-packages#113
This commit is contained in:
2026-07-08 20:19:36 +08:00
+23
View File
@@ -0,0 +1,23 @@
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"])