mrrl

Minimal Reliable Reproducible Linux
git clone https://ccx.te2000.cz/git/mrrl
Log | Files | Refs | Submodules | README

nawk:bootstrap (1613B)


      1 {%- set pkg_version="20250116" -%}
      2 {%- set src_dir="awk-20250116" -%}
      3 {% extends "genlinks_mini" %}
      4 {%- do import_functions.update(["build_env_static", "check_static"]) %}
      5 {%- block template_deps -%}{% endblock template_deps %}
      6 {%- block package_deps -%}
      7 #@pragma:nosandbox
      8 #@pragma:nopath
      9 #+{{pkg_install_name("musl-cross-make:bootstrap-0")}}
     10 #@untar:-z:sha256:e031b1e1d2b230f276f975bffb923f0ea15f798c839d15a3f26a1a39448e32d7:.
     11 #@sha256:{{ files["nawk-20250116-proctab.c"] }}:awk-20250116/proctab.c
     12 #@sha256:{{ files["nawk-20250116-awkgram.tab.c"] }}:awk-20250116/awkgram.tab.c
     13 #@sha256:{{ files["nawk-20250116-awkgram.tab.h"] }}:awk-20250116/awkgram.tab.h
     14 {% endblock %}
     15 {% block prepare -%}
     16 PATH="$pthbs_build_environment/{{bindir}}:$PATH"
     17 {{ super() }}
     18 
     19 {%- endblock prepare %}
     20 {%- block build -%}
     21 mcm={{versions}}/musl-cross-make.{{pkg_sha256("musl-cross-make:bootstrap-0")}}
     22 "$mcm/bin/{{triplet}}-gcc" --version
     23 
     24 build_env_static
     25 
     26 # no clue why we need to spell out implicit rule
     27 printf '%s\n' >>makefile \
     28  	'' '.SUFFIXES: .c .o' '.c.o:' '	$(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<'
     29 {{make}} "CC=$mcm/bin/{{triplet}}-gcc -static" "CXX=$mcm/bin/{{triplet}}-g++ -static"
     30 
     31 {% endblock build -%}
     32 {%- block install -%}
     33 install -Dm755 a.out "${dest}"/{{bindir}}/awk
     34 install -Dm644 awk.1 "${dest}"/{{mandir}}/man1/awk.1
     35 install -Dm644 LICENSE FIXES FIXES.1e README.md TODO -t "${dest}"/{{docdir}}/
     36 
     37 {% endblock install %}
     38 {%- block check -%}
     39 {{ super() -}}
     40 check_static {{bindir|shesc}}/awk
     41 
     42 {% endblock check %}
     43 {%- block genlinks_begin -%}
     44 	x["./{{bindir}}/awk"]=1
     45 	x["./{{mandir}}/man1/awk.1"]=1
     46 {% endblock %}
     47