desktop/nano/PKGBUILD

32 lines
790 B
Bash
Raw Normal View History

pkgname=nano
2018-01-29 20:09:04 +08:00
pkgver=2.9.3
2017-11-19 08:38:16 +08:00
_mainver=2.9
2017-01-11 06:52:19 +08:00
pkgrel=1
pkgdesc="Pico editor clone with enhancements"
arch=('x86_64')
license=('GPL')
2017-05-21 20:14:05 +08:00
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
2018-01-29 20:09:04 +08:00
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
2017-01-11 06:52:19 +08:00
install -DTm644 ${srcdir}/${pkgname}-${pkgver}/doc/sample.nanorc ${pkgdir}/etc/nanorc
}