2015-03-23 19:47:18 +08:00
|
|
|
pkgname=nano
|
2016-09-02 06:20:58 +08:00
|
|
|
pkgver=2.7.0
|
|
|
|
_mainver=2.7
|
2015-03-23 19:47:18 +08:00
|
|
|
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
|
2016-09-02 06:20:58 +08:00
|
|
|
md5sums=('0805c5b8c75d4fde053e4b1431270f91')
|
2015-03-23 19:47:18 +08:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|