spf_template djb &&
spf_tested_version 0.50 &&
spf_url home  'http://code.dogmap.org/ptyget/' &&
spf_url watch 'http://code.dogmap.org/ptyget/' &&
spf_url src   "http://cr.yp.to/software/ptyget-${spf_version?}.tar.gz" &&
spf_cc group_tty tty \
  'The first line of this file specifies the group that owns tty devices.' &&
spf_own bin/ptyget 0 "${spf_ccv_group_tty?}" u=rwxs,g=rxs,o=rx &&
spf_do_install() {
  mkdir "${spf_path_prefix?}" &&
  prj_u2 prj_set pkg_edits '' &&
  spf_edit c_define pkg_edits string CONF_HOME "${spf_path_prefix?}" &&
  prj_sedfile conf-home.h "${pkg_edits?}" &&
  eval "set gcc ${spf_args_cpp?} ${spf_args_cc?}" &&
  pkg_edits='CC='`prj_quote_sh "$*"`' &&
' &&
  eval "set gcc ${spf_args_cc?} ${spf_args_ld?}" &&
  pkg_edits=${pkg_edits?}'LD='`prj_quote_sh "$*"` &&
  prj_echo "${pkg_edits?}" > conf-cc.sh &&
  spf_hack_errno error.h &&
  prj_sedfile ptyget-setup.c 's:(\(chown\|chmod\)(:(0 \&\& \1(:' &&
  eval "make ${spf_args_make?} setup" &&
  chmod +rx "${spf_path_prefix?}"/bin/* &&
  mkdir "${spf_path_prefix?}"/man/man1 "${spf_path_prefix?}"/man/man8 &&
  cp *.1 "${spf_path_prefix?}"/man/man1 &&
  cp *.8 "${spf_path_prefix?}"/man/man8 &&
  rm -rf "${spf_path_prefix?}"/man/cat*
} &&
spf_no_check ## there are no tests

