PKGBUILD 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Maintainer: Andreas Radke <andyrtr@archlinux.org>
  2. # Contributor: Judd <judd@archlinux.org>
  3. pkgname=nano
  4. pkgver=3.1
  5. pkgrel=1
  6. pkgdesc="Pico editor clone with enhancements"
  7. arch=('x86_64' 'ppc64le')
  8. license=('GPL')
  9. url="http://www.nano-editor.org"
  10. groups=('base')
  11. depends=('ncurses' 'file' 'sh')
  12. backup=('etc/nanorc')
  13. source=(https://www.nano-editor.org/dist/v3/${pkgname}-${pkgver}.tar.xz{,.asc})
  14. sha256sums=('14c02ca40a5bc61c580ce2f9cb7f9fc72d5ccc9da17ad044f78f6fb3fdb7719e'
  15. 'SKIP')
  16. validpgpkeys=('8DA6FE7BFA7A418AB3CB2354BCB356DF91009FA7' # "Chris Allegretta <chrisa@asty.org>"
  17. 'A7F6A64A67DA09EF92782DD79DF4862AF1175C5B' # "Benno Schulenberg <bensberg@justemail.net>"
  18. 'BFD009061E535052AD0DF2150D28D4D2A0ACE884' # "Benno Schulenberg <bensberg@telfort.nl>"
  19. )
  20. build() {
  21. cd ${pkgname}-${pkgver}
  22. ./configure --prefix=/usr \
  23. --sysconfdir=/etc \
  24. --enable-color \
  25. --enable-nanorc \
  26. --enable-multibuffer \
  27. --disable-wrapping-as-root
  28. make
  29. }
  30. package() {
  31. cd ${pkgname}-${pkgver}
  32. make DESTDIR=${pkgdir} install
  33. install -DTm644 ${srcdir}/${pkgname}-${pkgver}/doc/sample.nanorc ${pkgdir}/etc/nanorc
  34. }