pthbs

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

skalibs (921B)


      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 #@git:{{submodule.current.skalibs}}:skalibs
      7 
      8 : ${JOBS:=1}
      9 
     10 export CC="$pthbs_build_environment/command/{{triplet}}-gcc"
     11 export CXX="$pthbs_build_environment/command/{{triplet}}-g++"
     12 export LD="$pthbs_build_environment/command/{{triplet}}-ld"
     13 export AR="$pthbs_build_environment/command/{{triplet}}-ar"
     14 
     15 export CFLAGS="-O2 -ggdb"
     16 
     17 prefix={{versions}}/$pthbs_package
     18 cd skalibs
     19 ./configure \
     20 	--prefix="$prefix" \
     21 	--sysdepdir="${prefix}/sysdeps" \
     22 	--binprefix="${prefix}/command" \
     23 	--extbinprefix="${prefix}/command" \
     24 	--dynlibdir="${prefix}/library.so" \
     25 	--libdir="${prefix}/library" \
     26 	--includedir="${prefix}/include" \
     27 	--disable-shared --enable-static
     28 
     29 {{make}}
     30 make DESTDIR="$pthbs_destdir" install
     31 {% endblock %}
     32 {% block genlinks_begin %}
     33 {% endblock %}