[arch-commits] Commit in help2man/trunk (PKGBUILD help2man.install)
Giovanni Scafora
giovanni at archlinux.org
Wed May 25 13:58:20 UTC 2011
Date: Wednesday, May 25, 2011 @ 09:58:20
Author: giovanni
Revision: 124968
upgpkg: help2man 1.39.4-1
upstream release
Added:
help2man/trunk/help2man.install
Modified:
help2man/trunk/PKGBUILD
------------------+
PKGBUILD | 5 +++--
help2man.install | 18 ++++++++++++++++++
2 files changed, 21 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2011-05-25 13:02:35 UTC (rev 124967)
+++ PKGBUILD 2011-05-25 13:58:20 UTC (rev 124968)
@@ -3,15 +3,16 @@
# Contributor: Paul Mattal <paul at mattal.com>
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}"
Added: help2man.install
===================================================================
--- help2man.install (rev 0)
+++ help2man.install 2011-05-25 13:58:20 UTC (rev 124968)
@@ -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
+}
More information about the arch-commits
mailing list