# Maintainer: PktSurf <smlinux@pktsurf.in>
app=nano
version=3.2
build=3sml
homepage="http://www.nano-editor.org"
download="https://www.nano-editor.org/dist/v3/nano-$version.tar.xz"
desc="Nano's ANOther editor, an enhanced free Pico clone"
requires="file netbsd-curses"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
}

build() {
  ./configure \
    --prefix="" \
    --docdir="/share/doc/$app-$version"

  make
  make install DESTDIR=$pkg

  cp COPYING* $pkgdocs/

  mkfinalpkg
}

sha512sums="
8fce9cf85a4663a4a8961887b8c6f37ca8b3caf0ab1fc69ff1e7f8ce7452807e9f1b2851fffec9e281e46631d1ac127392d774e01bd310b42db97a4f7824e55e  nano-3.2.tar.lz
"
