diff options
author | root <root@rshg054.dnsready.net> | 2012-09-15 00:03:54 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-09-15 00:03:54 +0000 |
commit | 58bcf29e17b49063f0be13069151b9890cb5c6a6 (patch) | |
tree | 93ffa4e6d734fbe0d0f4f47e2451a2bce48ab761 /testing/patch | |
parent | c7e751e3633b2e10c0ffcc68e4ce676f725f0843 (diff) |
Sat Sep 15 00:03:54 UTC 2012
Diffstat (limited to 'testing/patch')
-rw-r--r-- | testing/patch/PKGBUILD | 34 | ||||
-rw-r--r-- | testing/patch/patch-2.6.1-get-arg.patch | 12 |
2 files changed, 46 insertions, 0 deletions
diff --git a/testing/patch/PKGBUILD b/testing/patch/PKGBUILD new file mode 100644 index 000000000..7266d17e2 --- /dev/null +++ b/testing/patch/PKGBUILD @@ -0,0 +1,34 @@ +# $Id: PKGBUILD 166613 2012-09-13 04:53:23Z allan $ +# Maintainer: Allan McRae <allan@archlinux.org> +# Contributor: judd <jvinet@zeroflux.org> + +pkgname=patch +pkgver=2.7 +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=('d443f9d9a7d1bf1715831883917699d9' + '874fb55b72bc5c3c44794645b04e69a9') + +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/patch/patch-2.6.1-get-arg.patch b/testing/patch/patch-2.6.1-get-arg.patch new file mode 100644 index 000000000..45f3bc8a5 --- /dev/null +++ b/testing/patch/patch-2.6.1-get-arg.patch @@ -0,0 +1,12 @@ +diff -up patch-2.6.1/src/patch.c.get-arg patch-2.6.1/src/patch.c +--- patch-2.6.1/src/patch.c.get-arg 2010-07-27 18:05:26.217150510 +0100 ++++ patch-2.6.1/src/patch.c 2010-07-27 18:05:47.464150892 +0100 +@@ -558,7 +558,7 @@ static struct option const longopts[] = + {"remove-empty-files", no_argument, NULL, 'E'}, + {"force", no_argument, NULL, 'f'}, + {"fuzz", required_argument, NULL, 'F'}, +- {"get", no_argument, NULL, 'g'}, ++ {"get", required_argument, NULL, 'g'}, + {"input", required_argument, NULL, 'i'}, + {"ignore-whitespace", no_argument, NULL, 'l'}, + #ifdef ENABLE_MERGE |