mrrl

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

abduco (923B)


      1 {%- import "package_sets" as ps -%}
      2 {%- set pkg_source="git" -%}
      3 {% extends "genlinks" %}
      4 {%- do import_functions.update(["build_env_static", "check_static"]) %}
      5 {% block package_deps -%}
      6 {{ ps.toolchain() }}
      7 #+{{pkg_install_name("gnu-make")}}
      8 #+{{pkg_install_name("busybox-diffutils")}}
      9 {% endblock %}
     10 {% block configure -%}
     11 build_env_static
     12 cat >config.mk <<EOF
     13 # Any changes made here will be lost if configure is re-run
     14 SRCDIR = .
     15 PREFIX = ${prefix}
     16 EXEC_PREFIX = \$(PREFIX)
     17 BINDIR = ${prefix}/{{bindir}}
     18 MANPREFIX = ${prefix}/{{mandir}}
     19 CC = cc
     20 CFLAGS = -pipe -Os
     21 LDFLAGS = -static
     22 EOF
     23 sed 's/^/> /' config.mk
     24 
     25 {% endblock %}
     26 {% block install -%}
     27 {{ super() -}}
     28 # the Makefile hardcodes 'bin' despite configure undersanding BINDIR
     29 mv "${dest}/bin" "${dest}/{{bindir}}"
     30 
     31 {% endblock %}
     32 {% block check -%}
     33 check_static command/abduco
     34 
     35 {% endblock %}
     36 {% block genlinks_begin %}
     37 	x["./{{bindir}}/abduco"]=1
     38 {% endblock %}