libcap (1312B)
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("pkgconf-pkg-config")}} 8 #@untar:-J:sha256:f311f8f3dad84699d0566d1d6f7ec943a9298b28f714cae3c931dfd57492d7eb:. 9 10 {% include "functions/check_static" %} 11 {% include "functions/build_env_static" %} 12 {% include "functions/vars" %} 13 def_prefix 14 LDFLAGS=--static 15 build_env_static 16 17 cd libcap-2.69 18 sed -i '1 s|^#!/bin/bash|#!/bin/sh|' progs/*.sh 19 make \ 20 DESTDIR="$pthbs_destdir" \ 21 SHARED=no DYNAMIC=no LIBCSTATIC=yes \ 22 prefix="$prefix" \ 23 exec_prefix="$prefix" \ 24 lib_prefix="$prefix" \ 25 inc_prefix="$prefix" \ 26 man_prefix="$prefix/share" \ 27 MANDIR="$prefix/man" \ 28 sbin=command \ 29 SBINDIR="$prefix/command" \ 30 INCDIR="$prefix/include" \ 31 lib=library \ 32 LIBDIR="$prefix/library" \ 33 PKGCONFIGDIR="$prefix/library/pkgconfig" \ 34 CAPSH_SHELL="'-DSHELL=\"$(which sh)\"'" \ 35 LDFLAGS="$LDFLAGS" \ 36 all install 37 38 check_static command/capsh 39 check_static command/getcap 40 check_static command/setcap 41 check_static command/getpcaps 42 43 {% endblock %} 44 {% block genlinks_begin %} 45 x["./command/capsh"]=1 46 x["./command/getcap"]=1 47 x["./command/setcap"]=1 48 x["./command/getpcaps"]=1 49 x["./library/libcap.a"]=1 50 {% endblock %}