summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f0e67f5fff0993797d8b93789502bae8ae050e4b (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
# Maintainer: lmartinez
pkgname=vim-devicons-git
_pkgname=${pkgname%-git}
pkgver=0.11.0.r123.g4d14cb8
pkgrel=1
pkgdesc="Adds file type icons to Vim plugins"
arch=('any')
url="https://github.com/ryanoasis/vim-devicons"
license=('MIT')
groups=('vim-plugins')
depends=('vim-plugin-runtime')
optdepends=('nerd-fonts: standalone glyphs; any nerd-font package will suffice'
            'ttf-nerd-fonts'
            'otf-nerd-fonts')
makedepends=('git')
provides=("$_pkgname")
conflicts=("$_pkgname")
install="$pkgname.install"
source=("git+$url")
md5sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./'
}

package() {
  cd "$_pkgname"
  find autoload doc nerdtree_plugin plugin pythonx rplugin \
    -type f -exec install -Dm 644 '{}' "$pkgdir/usr/share/vim/vimfiles/{}" \;
  install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}