From 9e1a3eec7c202d9de63b8cbbb53fe89fb24c17e3 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Thu, 26 May 2011 08:50:27 -0400 Subject: [PATCH] extra/help2man to 1.39.4 --- extra/help2man/PKGBUILD | 7 ++++--- extra/help2man/help2man.install | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 extra/help2man/help2man.install diff --git a/extra/help2man/PKGBUILD b/extra/help2man/PKGBUILD index 92e14c772..b8fcb6745 100644 --- a/extra/help2man/PKGBUILD +++ b/extra/help2man/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 116002 2011-03-22 15:28:48Z giovanni $ +# $Id: PKGBUILD 124968 2011-05-25 13:58:20Z giovanni $ # Maintainer: Giovanni Scafora # Contributor: Paul Mattal @@ -8,15 +8,16 @@ plugrel=1 pkgname=help2man -pkgver=1.39.2 +pkgver=1.39.4 pkgrel=1 pkgdesc="Conversion tool to create man files" arch=('i686' 'x86_64') url="http://www.gnu.org/software/help2man/" license=('GPL') depends=('perl-locale-gettext') +install=help2man.install source=("http://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz") -md5sums=('36659da3ba7a9a51813e1c4848900a28') +md5sums=('6b1160697451ba87067231d172285840') build() { cd "${srcdir}/${pkgname}-${pkgver}" diff --git a/extra/help2man/help2man.install b/extra/help2man/help2man.install new file mode 100644 index 000000000..ab6585b91 --- /dev/null +++ b/extra/help2man/help2man.install @@ -0,0 +1,18 @@ +info_dir=/usr/share/info +info_files=(help2man.info) + +post_install() { + for f in ${info_files[@]}; do + install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + for f in ${info_files[@]}; do + install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null + done +}