mrrl

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

apk-tools (1239B)


      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 #+{{pkg_install_name("patch")}}
     10 #+{{pkg_install_name("libressl")}}
     11 #+{{pkg_install_name("zstd")}}
     12 #+{{pkg_install_name("pkgconf-pkg-config")}}
     13 #@sha256:{{files["apk-tools.patch"]}}:apk-tools.patch
     14 {% endblock package_deps %}
     15 {% block prepare -%}
     16 {{ super() -}}
     17 patch -p1 <../apk-tools.patch
     18 {% endblock prepare %}
     19 {% block build_and_install -%}
     20 build_env_static
     21 
     22 {{make}} STATIC=y LUA=no V=1 \
     23 	CFLAGS=-O2 \
     24 	DESTDIR="$pthbs_destdir" \
     25 	SBINDIR="$prefix/{{bindir}}" \
     26 	CONFDIR="$prefix/etc/apk" \
     27 	MANDIR="$prefix/{{mandir}}" \
     28 	DOCDIR="$prefix/{{docdir}}/apk" \
     29 	INCLUDEDIR="$prefix/{{includedir}}" \
     30 	LIBDIR="$prefix/{{libdir}}" \
     31 	PKGCONFIGDIR="$prefix/{{pkgconfigdir}}" \
     32 	install-static
     33 {% endblock build_and_install %}
     34 {% block check -%}
     35 check_static command/apk.static
     36 {% endblock check %}
     37 {% block genlinks_begin %}
     38 	x["./{{bindir}}/apk.static"]=1
     39 	x["./{{libdir}}/libapk.a"]=1
     40 	x["./{{pkgconfigdir}}/apk.pc"]=1
     41 {% endblock genlinks_begin %}