forked from semios/semios-packages
@@ -0,0 +1,29 @@
|
|||||||
|
import os
|
||||||
|
|
||||||
|
from lib import cpp, arch
|
||||||
|
from lib.make import *
|
||||||
|
|
||||||
|
version("1.4.21")
|
||||||
|
source_url("https://ftp.gnu.org/gnu/m4/m4-1.4.21.tar.xz")
|
||||||
|
|
||||||
|
builddep("shortcut/c")
|
||||||
|
builddep("shortcut/autotools")
|
||||||
|
builddep(f"linux-dev @{arch.get_target()}")
|
||||||
|
|
||||||
|
|
||||||
|
def build():
|
||||||
|
cpp.configure(
|
||||||
|
[f"--prefix={get_prefix('gnu-m4')}", "--enable-changeword", "--disable-nls"]
|
||||||
|
)
|
||||||
|
cpp.make()
|
||||||
|
cpp.make_install()
|
||||||
|
os.rename("bin/m4", "bin/gnu-m4")
|
||||||
|
|
||||||
|
|
||||||
|
on_build(build)
|
||||||
|
|
||||||
|
package("gnu-m4")
|
||||||
|
provide("m4")
|
||||||
|
dep("semi-libc @same-arch")
|
||||||
|
cpp.use_auto_pack(["bin"])
|
||||||
|
link("bin/gnu-m4", "/bin/m4")
|
||||||
Reference in New Issue
Block a user