From b1ff38c1c8b20aacea33f29e79bdf5ff9fd082e9 Mon Sep 17 00:00:00 2001
From: Cecil <knoppmyth@gmail.com>
Date: Wed, 6 Jul 2011 01:06:38 -0700
Subject: diffutils:bumped to latest.

---
 abs/core/diffutils/PKGBUILD          | 31 +++++++++++++++++++------------
 abs/core/diffutils/diffutils.install | 20 ++++++++++++++++++++
 2 files changed, 39 insertions(+), 12 deletions(-)
 create mode 100644 abs/core/diffutils/diffutils.install

diff --git a/abs/core/diffutils/PKGBUILD b/abs/core/diffutils/PKGBUILD
index 8b075bc..6f0c432 100644
--- a/abs/core/diffutils/PKGBUILD
+++ b/abs/core/diffutils/PKGBUILD
@@ -1,20 +1,27 @@
-# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
-# Maintainer: judd <jvinet@zeroflux.org>
+# $Id: PKGBUILD 79537 2010-05-04 12:05:07Z allan $
+# Maintainer: Allan McRae <allan@archlinux.org>
+# Contributor: Andreas Radke <andyrtr@archlinux.org>
+
 pkgname=diffutils
-pkgver=2.8.1
-pkgrel=5
+pkgver=3.0
+pkgrel=1
 pkgdesc="Utility programs used for creating patch files"
-arch=(i686 x86_64)
-license=('GPL')
-groups=('base-devel')
+arch=('i686' 'x86_64')
 url="http://www.gnu.org/software/diffutils"
-depends=('glibc')
-source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz)
-md5sums=('71f9c5ae19b60608f6c7f162da86a428')
+license=('GPL3')
+groups=('base')
+depends=('glibc' 'sh')
+install=diffutils.install
+source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz)
+md5sums=('7624eb7e6b53ea3ce38958a092d2216e')
 
 build() {
-  cd $startdir/src/$pkgname-$pkgver
+  cd ${srcdir}/${pkgname}-${pkgver}
   ./configure --prefix=/usr
   make || return 1
-  make DESTDIR=${startdir}/pkg install
+}
+
+package() {
+  cd ${srcdir}/${pkgname}-${pkgver}
+  make DESTDIR=${pkgdir} install || return 1
 }
diff --git a/abs/core/diffutils/diffutils.install b/abs/core/diffutils/diffutils.install
new file mode 100644
index 0000000..3ebec28
--- /dev/null
+++ b/abs/core/diffutils/diffutils.install
@@ -0,0 +1,20 @@
+infodir=/usr/share/info
+filelist=(diff.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.gz $infodir/dir 2> /dev/null
+  done
+}
-- 
cgit v0.12

