desktop/nano/PKGBUILD
2018-01-29 12:09:04 +00:00

32 lines
790 B
Bash

pkgname=nano
pkgver=2.9.3
_mainver=2.9
pkgrel=1
pkgdesc="Pico editor clone with enhancements"
arch=('x86_64')
license=('GPL')
url="https://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=('5e313575bd116743b6efd97950f95395')
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
}