void-packages

Void Source Packages
git clone git://ezup.dev/void-packages.git
Log | Files | Refs | README | LICENSE

configure.sh (778B)


      1#
      2# This helper is for templates using configure scripts (not generated
      3# by the GNU autotools).
      4#
      5do_configure() {
      6	: ${configure_script:=./configure}
      7
      8	${configure_script} ${configure_args}
      9}
     10
     11do_build() {
     12	: ${make_cmd:=make}
     13
     14	${make_cmd} ${makejobs} ${make_build_args} ${make_build_target}
     15}
     16
     17do_check() {
     18	if [ -z "$make_cmd" ] && [ -z "$make_check_target" ]; then 
     19		if make -q check 2>/dev/null; then
     20			:
     21		else
     22			if [ $? -eq 2 ]; then
     23				msg_warn 'No target to "make check".\n'
     24				return 0
     25			fi
     26		fi
     27	fi
     28
     29	: ${make_cmd:=make}
     30	: ${make_check_target:=check}
     31
     32	${make_cmd} ${make_check_args} ${make_check_target}
     33}
     34
     35do_install() {
     36	: ${make_cmd:=make}
     37	: ${make_install_target:=install}
     38
     39	${make_cmd} DESTDIR=${DESTDIR} ${make_install_args} ${make_install_target}
     40}