mrrl

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

abduco (892B)


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