aur-packages/vim-dart-plugin-git/PKGBUILD

32 lines
965 B
Bash
Raw Normal View History

2019-05-23 20:09:55 -07:00
# 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
2019-05-23 21:03:39 -07:00
pkgver=r87.8ffc3e2
2019-05-23 20:09:55 -07:00
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')
2019-05-23 21:03:39 -07:00
source=(git+https://github.com/dart-lang/dart-vim-plugin.git)
2019-05-23 20:09:55 -07:00
sha512sums=('SKIP')
pkgver() {
2019-05-23 21:03:39 -07:00
cd "${srcdir}/dart-vim-plugin"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
2019-05-23 20:09:55 -07:00
}
package() {
2019-05-23 21:03:39 -07:00
cd "dart-vim-plugin"
2019-05-23 20:09:55 -07:00
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"
}