# $Id: PKGBUILD 10350 2008-08-27 14:18:15Z andyrtr $
# Maintainer: Judd <judd@archlinux.org>
pkgname=nano
pkgver=2.0.8
pkgrel=12
pkgdesc="Pico editor clone with enhancements"
arch=('i686' 'x86_64')
license=('GPL')
url="http://www.nano-editor.org"
groups=('base')
depends=('glibc' 'ncurses')
source=(http://www.nano-editor.org/dist/v2.0/nano-${pkgver}.tar.gz)
backup=(etc/nanorc)
md5sums=('fcb2a26285921458b6fe381c2802b1a8')
install=nano.install

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  ./configure --prefix=/usr --sysconfdir=/etc --enable-color --enable-nanorc --enable-multibuffer --disable-wrapping
  make || return 1
  make DESTDIR=${pkgdir} install || return 1
  install -DTm644 ${srcdir}/${pkgname}-${pkgver}/doc/nanorc.sample ${pkgdir}/etc/nanorc

  rm -f ${pkgdir}/usr/share/info/dir
}