From ebc76d7ab6b252f69642e9f73481d1864f3da3c7 Mon Sep 17 00:00:00 2001 From: Cecil Date: Tue, 5 Jul 2011 23:45:17 -0700 Subject: nano:bumped to latest. --- abs/core/nano/PKGBUILD | 23 ++++++++++++++--------- abs/core/nano/nano.install | 6 +++--- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/abs/core/nano/PKGBUILD b/abs/core/nano/PKGBUILD index 6ecfd29..4b3b2d1 100644 --- a/abs/core/nano/PKGBUILD +++ b/abs/core/nano/PKGBUILD @@ -1,7 +1,9 @@ -# $Id: PKGBUILD 10350 2008-08-27 14:18:15Z andyrtr $ -# Maintainer: Judd +# $Id: PKGBUILD 87034 2010-08-09 17:54:43Z andyrtr $ +# Maintainer: Andreas Radke +# Contributor: Judd + pkgname=nano -pkgver=2.2.4 +pkgver=2.2.5 pkgrel=1 pkgdesc="Pico editor clone with enhancements" arch=('i686' 'x86_64') @@ -12,14 +14,17 @@ depends=('glibc' 'ncurses') source=(http://www.nano-editor.org/dist/v2.2/nano-${pkgver}.tar.gz) backup=(etc/nanorc) install=nano.install +md5sums=('77a10a49589f975ce98350a4527a2ebf') build() { cd ${srcdir}/${pkgname}-${pkgver} - ./configure --prefix=/usr --sysconfdir=/etc --enable-color --enable-nanorc --enable-multibuffer --disable-wrapping - make || return 1 - make DESTDIR=${pkgdir} install || return 1 - install -DTm644 ${srcdir}/${pkgname}-${pkgver}/doc/nanorc.sample ${pkgdir}/etc/nanorc + ./configure --prefix=/usr --sysconfdir=/etc --enable-color --enable-nanorc \ + --enable-multibuffer --disable-wrapping-as-root + make +} - rm -f ${pkgdir}/usr/share/info/dir +package() { + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir} install + install -DTm644 ${srcdir}/${pkgname}-${pkgver}/doc/nanorc.sample ${pkgdir}/etc/nanorc } -md5sums=('6304308afb1f7ef4a5e93eb99206632a') diff --git a/abs/core/nano/nano.install b/abs/core/nano/nano.install index 9842c9e..a320c40 100644 --- a/abs/core/nano/nano.install +++ b/abs/core/nano/nano.install @@ -1,7 +1,8 @@ infodir=/usr/share/info -filelist=(nano.info) +filelist=(nano.info.gz) post_install() { + [ -x usr/bin/install-info ] || return 0 for file in ${filelist[@]}; do install-info $infodir/$file $infodir/dir 2> /dev/null done @@ -12,9 +13,8 @@ post_upgrade() { } pre_remove() { + [ -x usr/bin/install-info ] || return 0 for file in ${filelist[@]}; do install-info --delete $infodir/$file $infodir/dir 2> /dev/null done } - -# vim:set ts=2 sw=2 et: -- cgit v0.12