forked from semios/semios-packages
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8563002537 |
@@ -1,35 +0,0 @@
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("10.47")
|
||||
source_url(
|
||||
"https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.47/pcre2-10.47.tar.gz"
|
||||
)
|
||||
|
||||
|
||||
def build():
|
||||
cpp.configure(
|
||||
[
|
||||
"--prefix=/",
|
||||
f"--libdir={get_prefix('libpcre2')}/lib",
|
||||
f"--bindir={get_prefix('pcre2-tools')}/bin",
|
||||
"--enable-jit",
|
||||
]
|
||||
)
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
|
||||
on_build(build)
|
||||
|
||||
package("libpcre2")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("pcre2-tools")
|
||||
dep("libpcre2 (same)")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
|
||||
dep("libpcre2-dev")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -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