pthbs

Packaging Through Hashed Build Scripts
git clone https://ccx.te2000.cz/git/pthbs
Log | Files | Refs | Submodules | README

safelink (670B)


      1 {% extends "genlinks" %}
      2 {%- block script %}
      3 #+{{pkg_install_name("musl-cross-make")}}
      4 #+{{pkg_install_name("gnu-make")}}
      5 #+{{pkg_install_name("busybox")}}
      6 #+{{pkg_install_name("skalibs")}}
      7 #@sha256:{{files["safelink.c"]}}:safelink.c
      8 
      9 name=safelink
     10 {% include "functions/check_static" %}
     11 {% include "functions/build_env_static" %}
     12 {% include "functions/vars" %}
     13 build_env_static
     14 def_prefix
     15 
     16 gcc -ggdb -D_GNU_SOURCE -static -o $name $name.c $LDFLAGS -lskarnet
     17 
     18 install -d "$pthbs_destdir/$prefix/command"
     19 install -m 755 $name "$pthbs_destdir/$prefix/command"
     20 check_static command/$name
     21 {% endblock %}
     22 {% block genlinks_begin %}
     23 	x["./command/safelink"]=1
     24 {%- endblock %}