diff options
Diffstat (limited to 'testing/which')
-rw-r--r-- | testing/which/PKGBUILD | 27 | ||||
-rw-r--r-- | testing/which/which.install | 20 |
2 files changed, 47 insertions, 0 deletions
diff --git a/testing/which/PKGBUILD b/testing/which/PKGBUILD new file mode 100644 index 000000000..a5f893aaa --- /dev/null +++ b/testing/which/PKGBUILD @@ -0,0 +1,27 @@ +# $Id: PKGBUILD 141957 2011-11-03 14:30:48Z allan $ +# Maintainer: Allan McRae <allan@archlinux.org> +# Contributor: Andreas Radke <andyrtr@archlinux.org> + +pkgname=which +pkgver=2.20 +pkgrel=5 +pkgdesc="A utility to show the full path of commands" +arch=('i686' 'x86_64') +url="http://www.xs4all.nl/~carlo17/which" +license=('GPL3') +groups=('base') +depends=('glibc' 'sh') +install=which.install +source=(http://www.xs4all.nl/~carlo17/$pkgname/$pkgname-$pkgver.tar.gz) +md5sums=('95be0501a466e515422cde4af46b2744') + +build() { + cd $srcdir/$pkgname-$pkgver + ./configure --prefix=/usr + make +} + +package() { + cd $srcdir/$pkgname-$pkgver + make DESTDIR=$pkgdir install +} diff --git a/testing/which/which.install b/testing/which/which.install new file mode 100644 index 000000000..167e2506e --- /dev/null +++ b/testing/which/which.install @@ -0,0 +1,20 @@ +infodir=/usr/share/info +filelist=(which.info) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file.gz $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +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 +} |