forked from semios/semios-packages
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3994b0d9a3 |
@@ -0,0 +1,23 @@
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("2.6.4")
|
||||
source_url("https://github.com/westes/flex/releases/download/v2.6.4/flex-2.6.4.tar.gz")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.configure(
|
||||
[
|
||||
f"--prefix={get_prefix('flex')}",
|
||||
"--disable-nls",
|
||||
]
|
||||
)
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
|
||||
on_build(build)
|
||||
|
||||
package("flex")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["bin", "lib", "dev"])
|
||||
@@ -1,45 +0,0 @@
|
||||
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