summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCecil <knoppmyth@gmail.com>2011-07-06 08:06:38 (GMT)
committerCecil <knoppmyth@gmail.com>2011-07-06 08:06:38 (GMT)
commitb1ff38c1c8b20aacea33f29e79bdf5ff9fd082e9 (patch)
treebf092139458380b84348798a14f526fa58f5c961
parentde0b9c170e5be49e648d4af9866bd5e397b0b817 (diff)
downloadlinhes_pkgbuild-b1ff38c1c8b20aacea33f29e79bdf5ff9fd082e9.zip
linhes_pkgbuild-b1ff38c1c8b20aacea33f29e79bdf5ff9fd082e9.tar.gz
linhes_pkgbuild-b1ff38c1c8b20aacea33f29e79bdf5ff9fd082e9.tar.bz2
diffutils:bumped to latest.
-rw-r--r--abs/core/diffutils/PKGBUILD31
-rw-r--r--abs/core/diffutils/diffutils.install20
2 files changed, 39 insertions, 12 deletions
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
+}