pthbs

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

netbsd-curses (863B)


      1 {% extends "genlinks" %}
      2 {%- block script %}
      3 #+{{pkg_install_name("busybox")}}
      4 #+{{pkg_install_name("gnu-make")}}
      5 #+{{pkg_install_name("musl-cross-make")}}
      6 #@git:{{submodule.current["netbsd-curses"]}}:curses
      7 
      8 export CFLAGS="-L$pthbs_build_environment/library -L$pthbs_build_environment/library.so"
      9 export LDFLAGS="-static -L$pthbs_build_environment/library $LDFLAGS"
     10 export LD_LIBRARY_PATH="$pthbs_build_environment/library:$pthbs_build_environment/library.so"
     11 export CPATH="$pthbs_build_environment/include"
     12 
     13 cd curses
     14 prefix={{versions}}/$pthbs_package
     15 {{make}}
     16 cat << EOF > config.mak
     17 PREFIX=$prefix
     18 PREFIX="$prefix"
     19 BINDIR="$prefix/command"
     20 INCDIR="$prefix/include"
     21 LIBDIR="$prefix/library"
     22 MANDIR="$prefix/man"
     23 DESTDIR="$pthbs_destdir"
     24 EOF
     25 
     26 {{make}}
     27 make install-static
     28 {% endblock %}
     29 {% block genlinks_begin %}
     30 	x["./library/libncurses.a"]=1
     31 {% endblock %}