# $Id: PKGBUILD 62841 2010-01-13 01:57:24Z allan $ # Maintainer: Allan McRae <allan@archlinux.org> # Contributor: judd <jvinet@zeroflux.org> pkgname=patch pkgver=2.6.1 pkgrel=1 pkgdesc="A utility to apply patch files to original sources" arch=('i686' 'x86_64') url="http://www.gnu.org/software/patch/patch.html" license=('GPL') groups=('base-devel') depends=('glibc') optdepends=('ed: Interpret the patch as an ed script; for patch -e functionality(deprecated)') source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz) md5sums=('d758eb96d3f75047efc004a720d33daf') build() { cd ${srcdir}/${pkgname}-${pkgver} ./configure --prefix=/usr --mandir=/usr/share/man make || return 1 } package() { cd ${srcdir}/${pkgname}-${pkgver} make prefix=${pkgdir}/usr mandir=${pkgdir}/usr/share/man install || return 1 }