core/nano/PKGBUILD
2010-05-16 15:08:55 +00:00

27 lines
827 B
Bash

# $Id: PKGBUILD 77847 2010-04-18 17:20:16Z andyrtr $
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Judd <judd@archlinux.org>
pkgname=nano
pkgver=2.2.4
pkgrel=1
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.2/nano-${pkgver}.tar.gz)
backup=(etc/nanorc)
install=nano.install
md5sums=('6304308afb1f7ef4a5e93eb99206632a')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr --sysconfdir=/etc --enable-color --enable-nanorc \
--enable-multibuffer --disable-wrapping-as-root
make || return 1
make DESTDIR=${pkgdir} install || return 1
install -DTm644 ${srcdir}/${pkgname}-${pkgver}/doc/nanorc.sample ${pkgdir}/etc/nanorc
}