diff options
author | Rhinoceros | 2020-01-08 23:29:36 +1100 |
---|---|---|
committer | Rhinoceros | 2020-01-08 23:29:36 +1100 |
commit | 9a2517cd6c019b296c73a835c2aced72d89e495e (patch) | |
tree | f8817bcbf976e87dfefda2d2f567873b6a853591 | |
parent | bee9107785c805b87494e108c8431c69b57090ed (diff) | |
download | aur-9a2517cd6c019b296c73a835c2aced72d89e495e.tar.gz |
Update to 1:r612.ece4fde-1
* Actually source the development version, instead of the stable
* Remove extraneous `vimdoc.install` (now a hook)
* Fix incorrect url
* Fix incorrect licence
* Depend on proper version of vim, as per upstream guidelines
* Copy pkgdesc from upstream
* Correct pkgver as per Arch guidelines
* Don't install "documentation" (not really documentation)
* Remove verbose messages
* Install new autoload directory
* No `.git` to remove when building package
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 42 | ||||
-rw-r--r-- | vimdoc.install | 19 |
3 files changed, 26 insertions, 49 deletions
@@ -1,17 +1,17 @@ pkgbase = vim-csv-git - pkgdesc = Vim filetype plugin for CSV files - pkgver = 20150115 + pkgdesc = csv.vim: a filetype plugin for csv files + pkgver = r612.ece4fde pkgrel = 1 - url = https://github.com/vim-scripts/csv.vim - install = vimdoc.install + epoch = 1 + url = https://github.com/chrisbra/csv.vim arch = any groups = vim-plugins - license = MIT + license = unknown makedepends = git - depends = vim + depends = vim>=7.4 provides = vim-csv conflicts = vim-csv - source = vim-csv::git+https://github.com/vim-scripts/csv.vim + source = git+https://github.com/chrisbra/csv.vim.git sha256sums = SKIP pkgname = vim-csv-git @@ -1,39 +1,35 @@ -# Maintainer: Matthew Gamble +# Maintainer: Rhinoceros <https://aur.archlinux.org/account/rhinoceros> +# Contributor: Matthew Gamble # Contributor: Andy Weidenbaum <archbaum@gmail.com> pkgname=vim-csv-git -pkgver=20150115 +_pkgname=csv.vim +pkgver=r612.ece4fde pkgrel=1 -pkgdesc="Vim filetype plugin for CSV files" +epoch=1 +pkgdesc='csv.vim: a filetype plugin for csv files' arch=('any') -depends=('vim') -makedepends=('git') +url='https://github.com/chrisbra/csv.vim' +license=('unknown') groups=('vim-plugins') -url="https://github.com/vim-scripts/csv.vim" -license=('MIT') -source=(${pkgname%-git}::git+https://github.com/vim-scripts/csv.vim) +depends=('vim>=7.4') +makedepends=('git') +source=("git+https://github.com/chrisbra/${_pkgname}.git") sha256sums=('SKIP') provides=('vim-csv') conflicts=('vim-csv') -install=vimdoc.install pkgver() { - cd ${pkgname%-git} - git log -1 --format="%cd" --date=short | sed "s|-||g" + cd ${_pkgname} + # No tags in the GitHub version + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } package() { - cd ${pkgname%-git} - - msg 'Installing documentation...' - install -Dm 644 README "$pkgdir/usr/share/doc/vim-csv/README" - - msg 'Installing appdirs...' - install -dm 755 "$pkgdir/usr/share/vim/vimfiles" - for _appdir in doc ftdetect ftplugin plugin syntax; do - cp -dpr --no-preserve=ownership $_appdir "$pkgdir/usr/share/vim/vimfiles/$_appdir" + cd ${_pkgname} + _installpath="${pkgdir}/usr/share/vim/vimfiles" + install -dm755 "${_installpath}" + for _appdir in autoload doc ftdetect ftplugin plugin syntax; do + cp -dpr --no-preserve=ownership $_appdir "${_installpath}/${_appdir}" done - - msg 'Cleaning up pkgdir...' - find "$pkgdir" -type d -name .git -exec rm -r '{}' + } diff --git a/vimdoc.install b/vimdoc.install deleted file mode 100644 index 93424c84ed8d..000000000000 --- a/vimdoc.install +++ /dev/null @@ -1,19 +0,0 @@ -post_install() { - echo -n "Updating vim help tags..." - /usr/bin/vim --noplugins -u NONE -U NONE \ - --cmd ":helptags /usr/share/vim/vimfiles/doc" --cmd ":q" > /dev/null 2>&1 - echo "done." -} - -post_upgrade() { - post_install $1 -} - -post_remove() { - post_install -} - -op=$1 -shift - -$op $* |