git (1505B)
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 #+{{pkg_install_name("m4")}} 8 #+{{pkg_install_name("libressl")}} 9 #+{{pkg_install_name("curl")}} 10 #@untar:-J:sha256:f612c1abc63557d50ad3849863fc9109670139fc9901e574460ec76e0511adb9:. 11 12 check_static() { 13 local exe || true 14 exe=$pthbs_destdir/'{{versions}}'/$pthbs_package/$1 15 if ! test -f $exe; then 16 printf '%s\n' "Error: file '$1' doesn't exist!" 17 exit 1 18 fi 19 interp_info=$(readelf --string-dump=.interp "$exe") || exit $? 20 if test x '!=' "x$interp_info"; then 21 printf '%s\n' "Error: '$1' is a dynamic binary!" 22 exit 1 23 fi 24 } 25 26 prefix={{versions}}/$pthbs_package 27 28 {{make}} -C ./git-2.43.2 \ 29 LD_LIBRARY_PATH="$pthbs_build_environment/library:$pthbs_build_environment/library.so" \ 30 CPATH="$pthbs_build_environment/include" \ 31 LDFLAGS="-static --static -L$pthbs_build_environment/library" \ 32 CPPFLAGS="-D_GNU_SOURCE" \ 33 NO_REGEX=NeedsStartEnd \ 34 NO_TCLTK=1 NO_PYTHON=1 NO_EXPAT=1 NO_GETTEXT=1 \ 35 DESTDIR="$pthbs_destdir" \ 36 prefix="$prefix" \ 37 gitexecdir="$prefix"/git-core \ 38 bindir="$prefix/command" \ 39 mandir="$prefix/man" \ 40 infodir="$prefix/info" \ 41 sharedir="$prefix/share" \ 42 gitwebdir="$prefix/gitweb" \ 43 V=1 all install 44 45 check_static command/git 46 47 {% endblock %} 48 {% block genlinks_begin %} 49 x["./command/git"]=1 50 x["./command/git-upload-archive"]=1 51 x["./command/git-receive-pack"]=1 52 {% endblock %}