# Description: GNU pico clone (a tiny text editor)
# URL: https://www.nano-editor.org
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: file ncurses

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

build(){
    cd $name-$version

    ./configure --prefix=/usr --disable-nls
    make
    make DESTDIR=$PKG install

    install -D -m 644 doc/sample.nanorc $PKG/usr/etc/nanorc
    rm -r $PKG/usr/share/{doc,info}
}
