[arch-commits] Commit in diffutils/repos (3 files)
Allan McRae
allan at archlinux.org
Mon Aug 15 04:47:05 UTC 2011
Date: Monday, August 15, 2011 @ 00:47:04
Author: allan
Revision: 135545
archrelease: copy trunk to testing-i686
Added:
diffutils/repos/testing-i686/
diffutils/repos/testing-i686/PKGBUILD
(from rev 135544, diffutils/trunk/PKGBUILD)
diffutils/repos/testing-i686/diffutils.install
(from rev 135544, diffutils/trunk/diffutils.install)
-------------------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
diffutils.install | 20 ++++++++++++++++++++
2 files changed, 52 insertions(+)
Copied: diffutils/repos/testing-i686/PKGBUILD (from rev 135544, diffutils/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD (rev 0)
+++ testing-i686/PKGBUILD 2011-08-15 04:47:04 UTC (rev 135545)
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Allan McRae <allan at archlinux.org>
+# Contributor: Andreas Radke <andyrtr at archlinux.org>
+
+pkgname=diffutils
+pkgver=3.1
+pkgrel=1
+pkgdesc="Utility programs used for creating patch files"
+arch=('i686' 'x86_64')
+url="http://www.gnu.org/software/diffutils"
+license=('GPL3')
+groups=('base')
+depends=('glibc' 'sh')
+install=diffutils.install
+source=(ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz)
+md5sums=('fbb1d804849fa32ff5853f028a3be46f')
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ ./configure --prefix=/usr
+ make
+}
+
+check() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ make check
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ make DESTDIR="${pkgdir}" install
+}
Copied: diffutils/repos/testing-i686/diffutils.install (from rev 135544, diffutils/trunk/diffutils.install)
===================================================================
--- testing-i686/diffutils.install (rev 0)
+++ testing-i686/diffutils.install 2011-08-15 04:47:04 UTC (rev 135545)
@@ -0,0 +1,20 @@
+infodir=usr/share/info
+filelist=(diffutils.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
+}
More information about the arch-commits
mailing list