[arch-commits] Commit in which/trunk (PKGBUILD which.install)
andyrtr at archlinux.org
andyrtr at archlinux.org
Mon Sep 22 17:33:50 UTC 2008
Date: Monday, September 22, 2008 @ 13:33:50
Author: andyrtr
Revision: 12859
upgpkg: which 2.20-1
Added:
which/trunk/which.install
Modified:
which/trunk/PKGBUILD
---------------+
PKGBUILD | 16 ++++++++++------
which.install | 20 ++++++++++++++++++++
2 files changed, 30 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2008-09-22 17:26:09 UTC (rev 12858)
+++ PKGBUILD 2008-09-22 17:33:50 UTC (rev 12859)
@@ -1,20 +1,24 @@
# $Id$
-# Maintainer: judd <jvinet at zeroflux.org>
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+
pkgname=which
-pkgver=2.19
-pkgrel=2
+pkgver=2.20
+pkgrel=1
pkgdesc="A utility to show the full path of commands"
-arch=(i686 x86_64)
+arch=('i686' 'x86_64')
url="http://www.xs4all.nl/~carlo17/which"
license=('GPL3')
+install=which.install
groups=('base')
-depends=('glibc')
+depends=('glibc' 'texinfo')
source=(http://www.xs4all.nl/~carlo17/$pkgname/$pkgname-$pkgver.tar.gz)
-md5sums=('bbd094cec2444cd78befbc0cf09deea4')
+md5sums=('95be0501a466e515422cde4af46b2744')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make DESTDIR=$startdir/pkg install
+
+ rm -f ${pkgdir}/usr/share/info/dir
}
Added: which.install
===================================================================
--- which.install (rev 0)
+++ which.install 2008-09-22 17:33:50 UTC (rev 12859)
@@ -0,0 +1,20 @@
+infodir=/usr/share/info
+filelist=(which.info)
+
+post_install() {
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list