pkgname=nano pkgver=3.1 _mainver=3 pkgrel=1 pkgdesc="Pico editor clone with enhancements" arch=('x86_64') license=('GPL') url="https://www.nano-editor.org" groups=('base') depends=('file' 'ncurses' 'sh') source=(https://www.nano-editor.org/dist/v${_mainver}/nano-${pkgver}.tar.xz) backup=(etc/nanorc) md5sums=('e5cbe298e4362fabb7e55173862b9a3d') build() { cd ${srcdir}/${pkgname}-${pkgver} ./configure --prefix=/usr \ --sysconfdir=/etc \ --enable-color \ --enable-nanorc \ --enable-multibuffer \ --disable-wrapping-as-root make } package() { cd ${srcdir}/${pkgname}-${pkgver} make DESTDIR=${pkgdir} install install -DTm644 ${srcdir}/${pkgname}-${pkgver}/doc/sample.nanorc ${pkgdir}/etc/nanorc }