diff options
author | Cecil <knoppmyth@gmail.com> | 2011-07-06 06:45:17 (GMT) |
---|---|---|
committer | Cecil <knoppmyth@gmail.com> | 2011-07-06 06:45:17 (GMT) |
commit | ebc76d7ab6b252f69642e9f73481d1864f3da3c7 (patch) | |
tree | 4eb836216b74eb193d4dab681bd110dfc15660e4 /abs/core/nano | |
parent | d15fb78ef03a06029a4be89baf458353f3ccbbb0 (diff) | |
download | linhes_pkgbuild-ebc76d7ab6b252f69642e9f73481d1864f3da3c7.zip linhes_pkgbuild-ebc76d7ab6b252f69642e9f73481d1864f3da3c7.tar.gz linhes_pkgbuild-ebc76d7ab6b252f69642e9f73481d1864f3da3c7.tar.bz2 |
nano:bumped to latest.
Diffstat (limited to 'abs/core/nano')
-rw-r--r-- | abs/core/nano/PKGBUILD | 23 | ||||
-rw-r--r-- | 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 <judd@archlinux.org> +# $Id: PKGBUILD 87034 2010-08-09 17:54:43Z andyrtr $ +# Maintainer: Andreas Radke <andyrtr@archlinux.org> +# Contributor: Judd <judd@archlinux.org> + 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: |