diff options
Diffstat (limited to 'extra/parted')
-rw-r--r-- | extra/parted/PKGBUILD | 16 | ||||
-rw-r--r-- | extra/parted/parted-3.1-readline.patch | 11 |
2 files changed, 23 insertions, 4 deletions
diff --git a/extra/parted/PKGBUILD b/extra/parted/PKGBUILD index 20b127d33..6198f580c 100644 --- a/extra/parted/PKGBUILD +++ b/extra/parted/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 199967 2013-11-20 11:26:39Z allan $ +# $Id: PKGBUILD 206906 2014-03-05 18:41:12Z giovanni $ # Maintainer: Giovanni Scafora <giovanni@archlinux.org> # Contributor: Aaron Griffin <aaron@archlinux.org> pkgname=parted pkgver=3.1 -pkgrel=3 +pkgrel=4 pkgdesc="A program for creating, destroying, resizing, checking and copying partitions" arch=('i686' 'x86_64') license=('GPL3') @@ -12,8 +12,16 @@ url="http://www.gnu.org/software/parted/parted.html" depends=('device-mapper' 'e2fsprogs') makedepends=('pkg-config') install=parted.install -source=("http://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz") -md5sums=('5d89d64d94bcfefa9ce8f59f4b81bdcb') +source=("http://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz" + 'parted-3.1-readline.patch') +md5sums=('5d89d64d94bcfefa9ce8f59f4b81bdcb' + '7f3c0f9d2fa2569054734149c1bf9d0c') + +prepare() { + cd "${srcdir}/${pkgname}-${pkgver}" + + patch -Np1 -i "${srcdir}/parted-3.1-readline.patch" +} build() { cd "${srcdir}/${pkgname}-${pkgver}" diff --git a/extra/parted/parted-3.1-readline.patch b/extra/parted/parted-3.1-readline.patch new file mode 100644 index 000000000..936ec00cb --- /dev/null +++ b/extra/parted/parted-3.1-readline.patch @@ -0,0 +1,11 @@ +--- a/parted/ui.c ++++ b/parted/ui.c +@@ -1474,7 +1474,7 @@ + #ifdef HAVE_LIBREADLINE + if (!opt_script_mode) { + rl_initialize (); +- rl_attempted_completion_function = (CPPFunction*) complete_function; ++ rl_attempted_completion_function = (rl_completion_func_t*) complete_function; + readline_state.in_readline = 0; + } + #endif |