spf_template code.dogmap.org:gnu &&
prj_u2 prj_capture pkg_maj_min prj_sedarg1 's/^\([^.]*\.[^.]*\).*/\1/' "${spf_version?}" &&
spf_url home 'http://kernel.org/pub/linux/utils/util-linux-ng/' &&
spf_url watch 'http://kernel.org/pub/linux/utils/util-linux-ng/' &&
spf_url src "http://kernel.org/pub/linux/utils/util-linux-ng/v${pkg_maj_min?}/util-linux-ng-${spf_version?}.tar.bz2" &&
spf_depend code.dogmap.org:ncurses degree optional &&
spf_depend code.dogmap.org:zlib degree optional &&
spf_template_gnu_do_before_configure() {
  if test -d "${spf_path_conf?}"/ncurses/.
    then spf_args configure --with-ncurses
    else spf_args configure --without-ncurses
  fi
} &&
spf_tested_version 2.18

