kind: autotools
depends:
- core.bst
- python2-core.bst
- docutils.bst
sources:
- kind: git
  url: upstream:nano-tarball
  track: baserock/morph
  ref: fb040ea36cb8e2158ccd9100600652f94ae90af1
config:
  configure-commands:
  - ./configure --prefix="%{prefix}" --sysconfdir=/etc
  install-commands:
    (>):
    - |
      cat <<EOF >> nanorc
      set smooth
      include /usr/share/nano/c.nanorc
      include /usr/share/nano/patch.nanorc
      include /usr/share/nano/python.nanorc
      include /usr/share/nano/sh.nanorc
      EOF
    - mkdir -p "%{install-root}"/etc
    - install -m 644 nanorc "%{install-root}"/etc/nanorc
