blob: c51ae2eed172a68cc0467f3d2be16705e1562743 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# $Id: PKGBUILD 99945 2010-11-19 15:36:41Z stephane $
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>
pkgname=patch
pkgver=2.6.1
pkgrel=2
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 patch-2.6.1-get-arg.patch)
md5sums=('d758eb96d3f75047efc004a720d33daf' '45cd5709adbbcdcb3ab95dc43559c07c')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Fixed argument type for --get
# see https://bugzilla.redhat.com/show_bug.cgi?id=553624
patch -Np1 -i ../patch-2.6.1-get-arg.patch
./configure --prefix=/usr --mandir=/usr/share/man
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make prefix=${pkgdir}/usr mandir=${pkgdir}/usr/share/man install
}
|