diff options
author | Eric Engestrom | 2020-04-18 23:50:15 +0200 |
---|---|---|
committer | Eric Engestrom | 2020-04-18 23:53:08 +0200 |
commit | c502f8dc06ae1cb881068964a35ae0c87475c131 (patch) | |
tree | 0b182103fe21c688bf4fbf53c77aa2a45792651b | |
parent | 1f8d9bd7c85701df2ca09d1159b983599e6e577d (diff) | |
download | aur-vim-easy-align.tar.gz |
fix package and re-publish
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 53 | ||||
-rw-r--r-- | vimdoc.install | 13 |
4 files changed, 24 insertions, 56 deletions
@@ -1,13 +1,11 @@ pkgbase = vim-easy-align - pkgdesc = A Vim alignment plugin - pkgver = 20150716 + pkgdesc = Vim alignment plugin + pkgver = 2.10.0 pkgrel = 1 url = https://github.com/junegunn/vim-easy-align - install = vimdoc.install arch = any - groups = vim-plugins - license = MIT - depends = vim + source = https://github.com/junegunn/vim-easy-align/archive/2.10.0.tar.gz + sha256sums = c6a4e0a360aa8e642f5c628ae273bfbe7e513a394302eef8c668e16949bd2cbb pkgname = vim-easy-align diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..218620e2fb38 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!/PKGBUILD +!/.SRCINFO +!/.gitignore @@ -1,46 +1,25 @@ -# Maintainer: KevMoriarty <kevmoriarty@gmx.com> +# Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch> pkgname=vim-easy-align -pkgver=20150716 +pkgver=2.10.0 pkgrel=1 -pkgdesc='A Vim alignment plugin' +pkgdesc='Vim alignment plugin' arch=('any') -url="https://github.com/junegunn/vim-easy-align" -license=('MIT') -depends=('vim') -groups=('vim-plugins') -install='vimdoc.install' -conflicts=('') -replaces=('') -provides=('') - -# Cleaner _git format -_gitdomain='github.com' -_gituser='junegunn' -_gitname='vim-easy-align' -_gitroot="https://$_gitdomain/$_gituser/$_gitname.git" - -build() { - cd "$srcdir" - msg "Connecting to GIT server.... [$_gitdomain:$_gituser:$_gitname]" - if [ -d $_gitname ] ; then - cd $_gitname && git pull origin - msg "The local files are updated." - else - git clone --depth=1 $_gitroot $_gitname - fi - msg "GIT checkout done or server timeout" -} +LICENSE=('MIT') +url='https://github.com/junegunn/vim-easy-align' +source=("$url/archive/$pkgver.tar.gz") +sha256sums=('c6a4e0a360aa8e642f5c628ae273bfbe7e513a394302eef8c668e16949bd2cbb') package() { - install -d ${pkgdir}/usr/share/vim/vimfiles/{autoload,doc,plugin} - - install -D -m644 ${srcdir}/$_gitname/autoload/* \ - ${pkgdir}/usr/share/vim/vimfiles/autoload/ + cd $pkgname-$pkgver - install -D -m644 ${srcdir}/$_gitname/doc/* \ - ${pkgdir}/usr/share/vim/vimfiles/doc/ + for _dir in autoload plugin doc + do + install -dm755 "$pkgdir"/usr/share/vim/vimfiles/"$_dir" - install -D -m644 ${srcdir}/$_gitname/plugin/* \ - ${pkgdir}/usr/share/vim/vimfiles/plugin/ + for _file in "$_dir"/easy_align.* + do + install -Dm644 "$_file" "$pkgdir"/usr/share/vim/vimfiles/"$_file" + done + done } diff --git a/vimdoc.install b/vimdoc.install deleted file mode 100644 index a23091b65bcc..000000000000 --- a/vimdoc.install +++ /dev/null @@ -1,13 +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 -} |