APP=nano
VERSION=3.2
BUILD=1sml
HOMEPAGE='http://www.nano-editor.org'
DOWNLOAD='https://www.nano-editor.org/dist/v3/nano-3.2.tar.xz'
DESC="Nano's ANOther editor, an enhanced free Pico clone"
REQUIRES="file netbsd-curses"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --disable-nls 

  make
  make install DESTDIR=$PKG

  cp COPYING* $PKGDOCS/

  mkfinalpkg
}

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