add vim-dart-plugin-git

This commit is contained in:
Trent Palmer 2019-05-23 20:09:55 -07:00
parent a6e8d71dc0
commit 0d70d38f9a
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,16 @@
pkgbase = vim-dart-plugin-git
pkgdesc = Syntax highlighting for Dart in Vim
pkgver = 0.1.0.r51.g8ffc3e2
pkgrel = 1
url = https://github.com/dart-lang/dart-vim-plugin
arch = any
license = BSD
makedepends = git
depends = vim-runtime
provides = vim-dart-plugin
conflicts = vim-dart-plugin
source = vim-dart-plugin-git::git+https://github.com/dart-lang/dart-vim-plugin.git
sha512sums = SKIP
pkgname = vim-dart-plugin-git

View File

@ -0,0 +1,31 @@
# Maintainer: Trent
# Contributor: Matthias Lisin <ml@visu.li>
# Contributor: Hugo Rodrigues <hugorodrigues at openmailbox dot com>
# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
pkgname=vim-dart-plugin-git
pkgver=0.1.0.r51.g8ffc3e2
pkgrel=1
pkgdesc='Syntax highlighting for Dart in Vim'
arch=('any')
url='https://github.com/dart-lang/dart-vim-plugin'
license=('BSD')
depends=('vim-runtime')
makedepends=('git')
conflicts=('vim-dart-plugin')
provides=('vim-dart-plugin')
source=("$pkgname::git+https://github.com/dart-lang/dart-vim-plugin.git")
sha512sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/-/.r/;s/-/./'
}
package() {
cd "$pkgname"
local installpath="$pkgdir/usr/share/vim/vimfiles"
install -dm755 "$installpath"
cp -rt "$installpath" autoload doc ftdetect ftplugin indent plugin syntax
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}