diff options
author | Luis Martinez | 2021-03-03 23:03:17 -0600 |
---|---|---|
committer | Luis Martinez | 2021-03-03 23:03:17 -0600 |
commit | 4f89d30acba7f809c4ed56239551e0f67fbc60e4 (patch) | |
tree | 84c3be18470921d1808a32b71282eeb5435b08c4 /PKGBUILD | |
download | aur-vim-devicons-git.tar.gz |
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f0e67f5fff09 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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/" +} |