blob: b94082a8b26228ea1c6dbf8442bdf232d30efa32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
pkgbase=vim-fern
pkgname=('vim-fern' 'neovim-fern')
pkgver=1.40.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')
checkdepends=('vim-themis')
source=("$pkgbase-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('08f35d30040ec0409e1f3a315aec80075b43ff88371ff47e9cc2563d4a457f4d')
check() {
cd "fern.vim-$pkgver"
themis test
}
package_vim-fern() {
depends=('vim')
groups=('vim-plugins')
cd "fern.vim-$pkgver"
find autoload doc ftplugin plugin \
-type f -exec install -Dm644 '{}' "$pkgdir/usr/share/vim/vimfiles/{}" \;
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}
package_neovim-fern() {
depends=('neovim' 'neovim-fixcursorhold')
groups=('neovim-plugins')
cd "fern.vim-$pkgver"
find autoload doc ftplugin plugin \
-type f -exec install -Dm644 '{}' "$pkgdir/usr/share/nvim/runtime/{}" \;
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}
|