forked from semios/semios-packages
39 lines
749 B
Python
39 lines
749 B
Python
import os
|
|
|
|
from lib import cpp
|
|
from lib.make import *
|
|
|
|
version("4.10")
|
|
description("a non-interactive command-line text editor")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_url("https://ftp.gnu.org/gnu/sed/sed-4.10.tar.gz")
|
|
|
|
block_hook("autolink")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/autotools")
|
|
|
|
|
|
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")
|