You are not logged in.

#1 2022-02-11 10:22:59

teable
Member
Registered: 2020-07-02
Posts: 5

Request PKGBUILD review and discussion for vim-plug

Recently, I installed vim-plug through AUR/vim-plug but found it's out-of-date and causing some problems.
By searching the AUR repo, there are 4 package for installing this plugin:
1. vim-plug
2. vim-plug-git
3. neovim-plug
4. neovim-plug-git

In fact, they pack the same project "https://github.com/junegunn/vim-plug", the only difference is the path to put initial script. It could be confusing to users. I wonder if we could merge them, and provide options for user to choose install for vim/neovim ?

and it seems the maintainer of vim-plug is no longer maintaining it, could I update the PKGBUILD directly ?
this is my PKGBUILD, it would be nice if someone could review it and give me some advice.

PKGBUILD:

pkgname=vim-plug
pkgver=0.11.0
pkgrel=1
pkgdesc="A minimalist Vim plugin manager."
arch=('any')
url="http://github.com/junegunn/vim-plug"
depends=('vim')
license=('MIT')
conflicts=('vim-plug-git')
provides=('vim-plug')
source=("${url}/archive/${pkgver}.tar.gz"
        'sample.vimrc'
        )
sha512sums=('79ff462790dad8e517a60f698d18e7038bc14f3f018c75a45d840d6f47c9987ee12cd84b44acb3b2fbc0d0e10ce9449aad51656c67d8b3ba675225e3c58459a2'
            'bd59afb32622517169265d602775a3f3eb342b6b8738515deb3f0419c5e2a966f4f4a1d83caf376e5eced010945a81a7ecfba5fd5298c1883be96399279cde75')

install=${pkgname}.install

package() {
  install -Dm 644 ${pkgname}-${pkgver}/plug.vim ${pkgdir}/usr/share/vim/vimfiles/autoload/plug.vim
  install -Dm 644 sample.vimrc ${pkgdir}/usr/share/vim-plug/sample.vimrc
}

vim-plug.install:

pre_install() {
        ">>> vim-plug supports both vim and neovim, this pakage installs vim-plug for vim."
        ">>> Use 'AUR/vim-plug-neo' for neovim user"
}

post_install() {
  echo "
    >>> To use vim-plug, please check the file /usr/share/vim-plug/vimrc.sample
    >>> update your ~/.vimrc file, accordingly
  "
}
post_upgrade() {
  post_install $1
}

post_remove() {
  echo "
    >>> Please remember to remove the modified part from your ~/.vimrc file
    >>> and plugin repos from your ~/.vim directory!
  "
}

Offline

Board footer

Powered by FluxBB