SHARE
TWEET

Untitled

a guest Sep 11th, 2018 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=nano
  2. serial= "$(curl -L https://www.nano-editor.org/dist/ | tr "<>" "\ " | awk '{print $9}' | grep "v[0-9]" | sort -V | tail -n 1)"
  3.  
  4. pkgver="$(curl -L https://www.nano-editor.org/dist/${serial} | tr "<>" "\ " | awk '{print $10}' | grep "[0-9].[0-9]" | sed 's/.tar\.xz//' | sed 's/.tar\.gz//' | sed 's/nano\-//' | sort -V | tail -n 1)"
  5.  
  6.  
  7. pkgrel=1
  8. pkgdesc="Pico editor clone with enhancements"
  9. arch=('x86_64')
  10. license=('GPL')
  11. url="http://www.nano-editor.org"
  12. groups=('base')
  13. depends=('ncurses' 'file' 'sh')
  14. backup=('etc/nanorc')
  15. source=(https://www.nano-editor.org/dist/${serial}/${pkgname}-${pkgver}.tar.xz{,.asc})
  16.  
  17.  
  18. build() {
  19.   cd ${pkgname}-${pkgver}
  20. ./configure --prefix=/usr     \
  21.             --sysconfdir=/etc \
  22.             --enable-utf8     \
  23.             --docdir=/usr/share/doc/nano-${pkgver}
  24. make
  25. }
  26.  
  27. package() {
  28.   cd ${pkgname}-${pkgver}
  29.   make DESTDIR=${pkgdir} install
  30.   install -DTm644 ${srcdir}/${pkgname}-${pkgver}/doc/sample.nanorc ${pkgdir}/etc/nanorc
  31. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top