forked from semios/semios-packages
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9f623be2e5 |
@@ -0,0 +1,33 @@
|
||||
import os
|
||||
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("4.10")
|
||||
source_url("https://ftp.gnu.org/gnu/sed/sed-4.10.tar.gz")
|
||||
|
||||
block_hook("autolink")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.configure(
|
||||
[
|
||||
"--prefix=/",
|
||||
f"--bindir={get_prefix('gnu-sed')}/bin",
|
||||
"--disable-i18n",
|
||||
"--disable-nls",
|
||||
]
|
||||
)
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
os.rename("bin/sed", "bin/gsed")
|
||||
|
||||
|
||||
on_build(build)
|
||||
|
||||
package("gnu-sed")
|
||||
provide("sed")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
link("bin/gsed", "/bin/gsed")
|
||||
link("bin/gsed", "/bin/sed")
|
||||
@@ -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