summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRhinoceros2017-03-31 16:45:58 +1100
committerRhinoceros2017-03-31 16:45:58 +1100
commit167597b824d099ce6e15fc63c9cfd7c822420807 (patch)
treecbae5fbe158ac3592bc05ed5b3adadeb1867592c
parent094055dd478dcecc65feb6988d2d214f6f021566 (diff)
downloadaur-167597b824d099ce6e15fc63c9cfd7c822420807.tar.gz
Update to r180.b95b04f-2
* Add patch to rename "on-disk version" to something more precise https://github.com/chrisbra/Recover.vim/issues/47
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD16
-rw-r--r--fix_nomenclature.patch11
3 files changed, 28 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3001fadfa81..1992d51cc15 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Thu Oct 27 03:09:14 UTC 2016
+# Fri Mar 31 05:44:55 UTC 2017
pkgbase = vim-recover-git
pkgdesc = A Vim plugin to show a diff, whenever recovering a buffer
- pkgver = r170.eed74fb
- pkgrel = 1
+ pkgver = r180.b95b04f
+ pkgrel = 2
url = http://www.vim.org/scripts/script.php?script_id=3068
install = vimdoc.install
arch = any
@@ -15,7 +15,9 @@ pkgbase = vim-recover-git
provides = vim-recover
conflicts = vim-recover
source = git+https://github.com/chrisbra/Recover.vim.git
+ source = fix_nomenclature.patch
sha256sums = SKIP
+ sha256sums = 67f2652b757065f927ee4b09135e6e0de6cc5903a2d3ccd1db2fe3bd63ca807a
pkgname = vim-recover-git
diff --git a/PKGBUILD b/PKGBUILD
index cf17977ec2f..6e115fcbed4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
# Maintainer: Rhinoceros <https://aur.archlinux.org/account/rhinoceros>
pkgname=vim-recover-git
-pkgver=r170.eed74fb
-pkgrel=1
+pkgver=r180.b95b04f
+pkgrel=2
pkgdesc='A Vim plugin to show a diff, whenever recovering a buffer'
arch=('any')
url='http://www.vim.org/scripts/script.php?script_id=3068'
@@ -14,14 +14,22 @@ makedepends=('git')
provides=('vim-recover')
conflicts=('vim-recover')
install=vimdoc.install
-source=('git+https://github.com/chrisbra/Recover.vim.git')
-sha256sums=('SKIP')
+source=('git+https://github.com/chrisbra/Recover.vim.git'
+ 'fix_nomenclature.patch')
+sha256sums=('SKIP'
+ '67f2652b757065f927ee4b09135e6e0de6cc5903a2d3ccd1db2fe3bd63ca807a')
pkgver() {
cd 'Recover.vim'
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
+prepare() {
+ cd 'Recover.vim'
+ # rename "on-disk version" to something more precise https://github.com/chrisbra/Recover.vim/issues/47
+ patch -p0 <../../fix_nomenclature.patch
+}
+
package() {
_installpath="${pkgdir}/usr/share/vim/vimfiles"
mkdir -p "${_installpath}"
diff --git a/fix_nomenclature.patch b/fix_nomenclature.patch
new file mode 100644
index 00000000000..e580c04e906
--- /dev/null
+++ b/fix_nomenclature.patch
@@ -0,0 +1,11 @@
+--- /usr/share/vim/vimfiles/autoload/recover.vim 2017-03-31 16:05:13.988929922 +1100
++++ /tmp/recover.vim 2017-03-24 08:18:47.419002712 +1100
+@@ -258,7 +258,7 @@
+ exe "setl filetype=".l:filetype
+ endif
+ exe "f! " . escape(expand("<afile>")," ") .
+- \ escape(' (on-disk version)', ' ')
++ \ escape(' (manually-saved version)', ' ')
+ diffthis
+ setl noswapfile buftype=nowrite bufhidden=delete nobuflisted
+ let b:mod='unmodified version on-disk'