forked from semios/semios-packages
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8563002537 | ||
|
|
f76006e595 | ||
|
|
fea89673ed |
@@ -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)
|
||||
@@ -0,0 +1,43 @@
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
upstream_version = "9.2.782"
|
||||
|
||||
version(upstream_version)
|
||||
source_url("https://github.com/vim/vim/archive/refs/tags/v9.2.0782.tar.gz")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.configure(
|
||||
[
|
||||
"--prefix=/",
|
||||
f"--bindir={get_prefix('vim')}/bin",
|
||||
"--datarootdir=/share",
|
||||
f"--datadir={get_prefix('vim-data')}/share",
|
||||
"--enable-terminal",
|
||||
"--enable-autoservername",
|
||||
"--enable-multibyte",
|
||||
"--disable-nls",
|
||||
]
|
||||
)
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack_data(composer):
|
||||
composer.makedirs("share/vim")
|
||||
composer.add_dir("share/vim/vim92", "share/vim/vim92")
|
||||
|
||||
|
||||
package("vim-data")
|
||||
arch_any()
|
||||
on_pack(pack_data)
|
||||
|
||||
package("vim")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libncurses @same-arch")
|
||||
dep(f"vim-data (={upstream_version}) @any")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
Reference in New Issue
Block a user