diff options
author | root <root@rshg054.dnsready.net> | 2011-08-16 23:14:31 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-08-16 23:14:31 +0000 |
commit | 68b7938bb87c6e91d54e4f35f0223c7237fa53e1 (patch) | |
tree | c958be233dadd94e64aee91d88f18f1638817b6f /testing/diffutils | |
parent | 3abfc1ebef5936241997dd882938581c91743ee9 (diff) |
Tue Aug 16 23:14:31 UTC 2011
Diffstat (limited to 'testing/diffutils')
-rw-r--r-- | testing/diffutils/PKGBUILD | 32 | ||||
-rw-r--r-- | testing/diffutils/diffutils.install | 20 |
2 files changed, 52 insertions, 0 deletions
diff --git a/testing/diffutils/PKGBUILD b/testing/diffutils/PKGBUILD new file mode 100644 index 000000000..871dcd363 --- /dev/null +++ b/testing/diffutils/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 135546 2011-08-15 04:47:49Z allan $ +# Maintainer: Allan McRae <allan@archlinux.org> +# Contributor: Andreas Radke <andyrtr@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 +} diff --git a/testing/diffutils/diffutils.install b/testing/diffutils/diffutils.install new file mode 100644 index 000000000..ae6655fba --- /dev/null +++ b/testing/diffutils/diffutils.install @@ -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 +} |