description="A simple text editor which aims to replace Pico, the default editor in the Pine package."
url="http://www.nano-editor.org/"

packager="tnut <tnut@nutyx.org>"
contributors="Pierre B, Greg, Remy"

name=nano
version=5.3

source=(https://www.nano-editor.org/dist/v${version:0:1}/$name-$version.tar.xz)

build() {
cd $name-$version

./configure --prefix=/usr \
--sysconfdir=/etc/nano \
--enable-color    \
--enable-utf8     \
--enable-multibuffer \
--docdir=/usr/share/doc/nano-$version \
--disable-x

make

make DESTDIR=$PKG install

install -DTm644 ../${name}-${version}/doc/sample.nanorc ${PKG}/etc/nano/nanorc

}
