PKGBUILD 770 Bytes
Newer Older
1
pkgname=nano
Jeff Huang's avatar
Jeff Huang committed
2 3
pkgver=5.0
_mainver=5
Jeff Huang's avatar
Jeff Huang committed
4
pkgrel=1
5 6 7
pkgdesc="Pico editor clone with enhancements"
arch=('x86_64')
license=('GPL')
Jeff Huang's avatar
Jeff Huang committed
8
url="https://www.nano-editor.org"
9
groups=('base')
Jeff Huang's avatar
Jeff Huang committed
10
depends=('file' 'ncurses' 'sh')
Jeff Huang's avatar
Jeff Huang committed
11
source=(https://www.nano-editor.org/dist/v${_mainver}/${pkgname}-${pkgver}.tar.xz)
12
backup=(etc/nanorc)
Jeff Huang's avatar
Jeff Huang committed
13
sha256sums=('7c0d94be69cd066f20df2868a2da02f7b1d416ce8d47c0850a8bd270897caa36')
14 15 16 17 18 19 20

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  ./configure --prefix=/usr \
              --sysconfdir=/etc \
              --enable-color \
              --enable-nanorc \
21
	      --enable-multibuffer
22 23 24 25 26 27
  make
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}
  make DESTDIR=${pkgdir} install
Jeff Huang's avatar
Jeff Huang committed
28
  install -DTm644 ${srcdir}/${pkgname}-${pkgver}/doc/sample.nanorc ${pkgdir}/etc/nanorc
29
}