[arch-commits] Commit in which/trunk (PKGBUILD which.install)

2016-05-14 Thread Sébastien Luttringer
Date: Saturday, May 14, 2016 @ 15:14:25
  Author: seblu
Revision: 267965

upgpkg: which 2.21-2

https://www.archlinux.org/todo/hooks-part-1/

Modified:
  which/trunk/PKGBUILD
Deleted:
  which/trunk/which.install

---+
 PKGBUILD  |3 +--
 which.install |   20 
 2 files changed, 1 insertion(+), 22 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-05-14 13:10:33 UTC (rev 267964)
+++ PKGBUILD2016-05-14 13:14:25 UTC (rev 267965)
@@ -5,7 +5,7 @@
 
 pkgname=which
 pkgver=2.21
-pkgrel=1
+pkgrel=2
 pkgdesc='A utility to show the full path of commands'
 arch=('i686' 'x86_64')
 url='http://savannah.gnu.org/projects/which'
@@ -12,7 +12,6 @@
 license=('GPL3')
 groups=('base' 'base-devel')
 depends=('glibc' 'bash')
-install=which.install
 # gpg key is using deprecated md5 algo, do not use
 # check if a new one is issued in the next release
 source=("http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz;)

Deleted: which.install
===
--- which.install   2016-05-14 13:10:33 UTC (rev 267964)
+++ which.install   2016-05-14 13:14:25 UTC (rev 267965)
@@ -1,20 +0,0 @@
-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
-}


[arch-commits] Commit in which/trunk (PKGBUILD which.install)

2014-07-01 Thread Sébastien Luttringer
Date: Tuesday, July 1, 2014 @ 22:43:38
  Author: seblu
Revision: 216175

upgpkg: which 2.20-7

- New upstream URL. Old one are dead.
- Bashify install file
- Syntax winter cleanup
- Change maintainership
- https://www.archlinux.org/todo/mtree-rebuilds/

Modified:
  which/trunk/PKGBUILD
  which/trunk/which.install

---+
 PKGBUILD  |   24 ++--
 which.install |   14 +++---
 2 files changed, 21 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-07-01 19:15:44 UTC (rev 216174)
+++ PKGBUILD2014-07-01 20:43:38 UTC (rev 216175)
@@ -1,27 +1,31 @@
 # $Id$
-# Maintainer: Allan McRae al...@archlinux.org
+# Maintainer: Sébastien Luttringer se...@archlinux.org
+# Contributor: Allan McRae al...@archlinux.org
 # Contributor: Andreas Radke andy...@archlinux.org
 
 pkgname=which
 pkgver=2.20
-pkgrel=6
-pkgdesc=A utility to show the full path of commands
+pkgrel=7
+pkgdesc='A utility to show the full path of commands'
 arch=('i686' 'x86_64')
-url=http://www.xs4all.nl/~carlo17/which;
+url='http://savannah.gnu.org/projects/which'
 license=('GPL3')
 groups=('base' 'base-devel')
-depends=('glibc' 'sh')
+depends=('glibc' 'bash')
 install=which.install
-source=(http://www.xs4all.nl/~carlo17/$pkgname/$pkgname-$pkgver.tar.gz)
-md5sums=('95be0501a466e515422cde4af46b2744')
+source=(http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz{,.sig})
+md5sums=('95be0501a466e515422cde4af46b2744'
+ 'SKIP')
 
 build() {
-  cd $srcdir/$pkgname-$pkgver
+  cd $pkgname-$pkgver
   ./configure --prefix=/usr
   make
 }
 
 package() {
-  cd $srcdir/$pkgname-$pkgver
-  make DESTDIR=$pkgdir install
+  cd $pkgname-$pkgver
+  make DESTDIR=$pkgdir install
 }
+
+# vim:set ts=2 sw=2 et:

Modified: which.install
===
--- which.install   2014-07-01 19:15:44 UTC (rev 216174)
+++ which.install   2014-07-01 20:43:38 UTC (rev 216175)
@@ -2,19 +2,19 @@
 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
+  [[ -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
+  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
+  [[ -x usr/bin/install-info ]] || return 0
+  for file in ${filelist[@]}; do
+install-info --delete $infodir/$file $infodir/dir 2/dev/null
   done
 }



[arch-commits] Commit in which/trunk (PKGBUILD which.install)

2010-02-20 Thread Allan McRae
Date: Saturday, February 20, 2010 @ 06:30:24
  Author: allan
Revision: 69366

upgpkg: which 2.20-2
rebuild to compress info page, remove texinfo dep

Modified:
  which/trunk/PKGBUILD
  which/trunk/which.install

---+
 PKGBUILD  |   17 ++---
 which.install |6 +++---
 2 files changed, 13 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2010-02-20 11:28:09 UTC (rev 69365)
+++ PKGBUILD2010-02-20 11:30:24 UTC (rev 69366)
@@ -1,24 +1,27 @@
 # $Id$
-# Maintainer: Andreas Radke andy...@archlinux.org
+# Maintainer: Allan McRae al...@archlinux.org
+# Contributor: Andreas Radke andy...@archlinux.org
 
 pkgname=which
 pkgver=2.20
-pkgrel=1
+pkgrel=2
 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')
 install=which.install
-groups=('base')
-depends=('glibc' 'texinfo')
 source=(http://www.xs4all.nl/~carlo17/$pkgname/$pkgname-$pkgver.tar.gz)
 md5sums=('95be0501a466e515422cde4af46b2744')
 
 build() {
-  cd $startdir/src/$pkgname-$pkgver
+  cd $srcdir/$pkgname-$pkgver
   ./configure --prefix=/usr
   make || return 1
-  make DESTDIR=$startdir/pkg install
+}
 
-  rm -f ${pkgdir}/usr/share/info/dir
+package() {
+  cd $srcdir/$pkgname-$pkgver
+  make DESTDIR=$pkgdir install
 }

Modified: which.install
===
--- which.install   2010-02-20 11:28:09 UTC (rev 69365)
+++ which.install   2010-02-20 11:30:24 UTC (rev 69366)
@@ -2,8 +2,9 @@
 filelist=(which.info)
 
 post_install() {
+  [ -x usr/bin/install-info ] || return 0
   for file in ${fileli...@]}; do
-install-info $infodir/$file $infodir/dir 2 /dev/null
+install-info $infodir/$file.gz $infodir/dir 2 /dev/null
   done
 }
 
@@ -12,9 +13,8 @@
 }
 
 pre_remove() {
+  [ -x usr/bin/install-info ] || return 0
   for file in ${fileli...@]}; do
 install-info --delete $infodir/$file $infodir/dir 2 /dev/null
   done
 }
-
-# vim:set ts=2 sw=2 et: