desktop/nano/PKGBUILD
2016-10-30 12:16:53 +00:00

32 lines
789 B
Bash

pkgname=nano
pkgver=2.7.1
_mainver=2.7
pkgrel=1
pkgdesc="Pico editor clone with enhancements"
arch=('x86_64')
license=('GPL')
url="http://www.nano-editor.org"
groups=('base')
depends=('glibc' 'ncurses' 'sh')
source=(http://www.nano-editor.org/dist/v${_mainver}/nano-${pkgver}.tar.gz)
backup=(etc/nanorc)
install=nano.install
md5sums=('6d6aea789dd15171d8d05d2359c52f23')
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/nanorc.sample ${pkgdir}/etc/nanorc
}