Compare commits

..
1 Commits
Author SHA1 Message Date
sisungo e9f52ee363 feat: add package grep
Signed-off-by: sisungo <[email protected]>
2026-07-06 20:30:57 +08:00
3 changed files with 42 additions and 18 deletions
+26
View File
@@ -0,0 +1,26 @@
import subprocess
from lib.make import *
version("15.1.2")
source_url("https://gitea.semilabs.org/semios/grep/archive/v15.1.2.tar.gz")
def build():
subprocess.run(["./build.sh"], check=True)
on_build(build)
def pack_grep(composer):
composer.makedir("bin")
composer.addfile("grep", "bin/grep")
package("grep")
dep("semi-libc @same-arch")
dep("libpcre2 @same-arch")
on_pack(pack_grep)
link("bin/grep", "/bin/egrep")
link("bin/grep", "/bin/fgrep")
-18
View File
@@ -1,18 +0,0 @@
from lib import cpp
from lib.make import *
version("1.16")
source_url("http://dl.exactcode.de/oss/minised/minised-1.16.tar.gz")
def build():
cpp.make()
cpp.make_install()
on_build(build)
package("minised")
dep("semi-libc @same-arch")
cpp.use_auto_pack(["bin"])
provide("sed")
+16
View File
@@ -0,0 +1,16 @@
from lib import rust
from lib.make import *
version("0.1.1")
source_url("https://github.com/uutils/sed/releases/download/0.1.1/source.tar.gz")
def build():
rust.build()
on_build(build)
package("sed")
dep("semi-libc @same-arch")
rust.use_auto_pack(["bin"])