summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 16 insertions, 16 deletions
diff --git a/PKGBUILD b/PKGBUILD
index e724104c624..636c5fb47db 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,30 +1,30 @@
-# Maintainer: Hugo Rodrigues <hugorodrigues at openmailbox dot com>
+# Maintainer: 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
+pkgver=0.1.0.r42.g940adde
pkgrel=1
pkgdesc='Syntax highlighting for Dart in Vim'
arch=('any')
url='https://github.com/dart-lang/dart-vim-plugin'
license=('BSD')
-depends=('vim')
+depends=('vim-runtime')
makedepends=('git')
conflicts=('vim-dart-plugin')
provides=('vim-dart-plugin')
-source=("git+https://github.com/dart-lang/dart-vim-plugin.git")
-md5sums=('SKIP')
+source=("$pkgname::git+https://github.com/dart-lang/dart-vim-plugin.git")
+sha512sums=('SKIP')
-package() {
- cd "$srcdir"/dart-vim-plugin
-
- installpath="$pkgdir/usr/share/vim/vimfiles"
+pkgver() {
+ cd "$pkgname"
+ git describe --long --tags | sed 's/-/.r/;s/-/./'
+}
- install -Dm0644 autoload/dart.vim "$installpath/autoload/dart.vim"
- install -Dm0644 ftdetect/dart.vim "$installpath/ftdetect/dart.vim"
- install -Dm0644 ftplugin/dart.vim "$installpath/ftplugin/dart.vim"
- install -Dm0644 indent/dart.vim "$installpath/indent/dart.vim"
- install -Dm0644 plugin/dart.vim "$installpath/plugin/dart.vim"
- install -Dm0644 syntax/dart.vim "$installpath/syntax/dart.vim"
- install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+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"
}