pthbs

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

zstd (843B)


      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("busybox-diffutils")}}
      7 #@untar:-z:sha256:98e9c3d949d1b924e28e01eccb7deed865eefebf25c2f21c702e5cd5b63b85e1:.
      8 
      9 {% include "functions/check_static" %}
     10 {% include "functions/build_env_static" %}
     11 build_env_static
     12 
     13 cd zstd-1.5.5
     14 {{make}} default install \
     15 	V=1 \
     16 	DESTDIR="$pthbs_destdir" \
     17 	prefix="{{versions}}/$pthbs_package" \
     18 	datarootdir="{{versions}}/$pthbs_package" \
     19 	bindir="{{versions}}/$pthbs_package/command" \
     20 	libdir="{{versions}}/$pthbs_package/library"
     21 
     22 check_static command/zstd
     23 rm -v "$pthbs_destdir/{{versions}}/$pthbs_package/library"/*.so*
     24 
     25 {% endblock %}
     26 {% block genlinks_begin %}
     27 	x["./command/zstd"]=1
     28 	x["./library/libzstd.a"]=1
     29 {%- endblock %}