# $Id: PKGBUILD 167281 2012-09-29 22:30:14Z allan $ # Maintainer: Allan McRae # Contributor: judd pkgname=patch pkgver=2.7.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') makedepends=('ed') optdepends=('ed: for patch -e functionality') source=(ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz{,.sig}) md5sums=('e9ae5393426d3ad783a300a338c09b72' 'b12189e0de3cb2af25268441647ec517') 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 }