35 lines
742 B
Python
35 lines
742 B
Python
import subprocess
|
|
|
|
from lib.make import *
|
|
|
|
version("15.1.2")
|
|
description("SemiOS file pattern searcher")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_url("https://gitea.semilabs.org/semios/grep/archive/v15.1.2.tar.gz")
|
|
|
|
builddep("shortcut/c")
|
|
builddep(f"libpcre2-dev @{arch.get_target()}")
|
|
builddep("pcre2-tools")
|
|
builddep(f"libbzip2-dev @{arch.get_target()}")
|
|
builddep(f"libz-ng-dev @{arch.get_target()}")
|
|
|
|
|
|
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")
|