# Maintainer: Luis Martinez pkgbase=vim-fern pkgname=('vim-fern' 'neovim-fern') pkgver=1.38.3 pkgrel=1 pkgdesc="General purpose asynchronous tree viewer" arch=('any') url="https://github.com/lambdalisue/fern.vim" license=('MIT') optdepends=( 'gomi: trash-bin functionality' 'trash-cli: trash-bin functionality') source=("$pkgbase-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") sha256sums=('46319b1d992ca3629864d92872a5650fb93b4e486dc2b682f79095340b5df0fe') package_vim-fern() { depends=('vim>=8.1') groups=('vim-plugins') cd "fern.vim-$pkgver" find autoload doc ftplugin plugin \ -type f -exec install -Dm 644 '{}' "$pkgdir/usr/share/vim/vimfiles/{}" \; install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/" } package_neovim-fern() { depends=('neovim>=0.4.4' 'neovim-fix-cursorhold') groups=('neovim-plugins') cd "fern.vim-$pkgver" find autoload doc ftplugin plugin \ -type f -exec install -Dm 644 '{}' "$pkgdir/usr/share/nvim/runtime/{}" \; install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/" }