forked from semios/semios-packages
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8563002537 |
@@ -0,0 +1,45 @@
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("7.8.2")
|
||||
source_url("https://github.com/Genivia/ugrep/archive/refs/tags/v7.8.2.tar.gz")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.configure(
|
||||
[
|
||||
"--prefix=/",
|
||||
f"--bindir={get_prefix('ugrep')}/bin",
|
||||
f"--datarootdir={get_prefix('ugrep')}/share",
|
||||
"--disable-7zip",
|
||||
"--without-zlib",
|
||||
"--without-bzlib",
|
||||
"--without-lzma",
|
||||
"--without-lz4",
|
||||
"--without-zstd",
|
||||
"--without-brotli",
|
||||
"--without-bzip3",
|
||||
"--without-pcre2",
|
||||
"--without-boost-regex",
|
||||
]
|
||||
)
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack_ugrep(composer):
|
||||
composer.add_dir("bin", "bin")
|
||||
composer.makedir("share")
|
||||
composer.add_dir("share/ugrep", "share/ugrep")
|
||||
|
||||
|
||||
package("ugrep")
|
||||
dep("semi-libc @same-arch")
|
||||
provide("grep")
|
||||
link("bin/ugrep", "/bin/grep")
|
||||
link("bin/ugrep", "/bin/egrep")
|
||||
link("bin/ugrep", "/bin/fgrep")
|
||||
on_pack(pack_ugrep)
|
||||
Reference in New Issue
Block a user