summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD32
2 files changed, 20 insertions, 22 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c89806730bc..52b28cbd6c4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,16 @@
-# Generated by mksrcinfo v8
-# Mon Jan 25 12:10:35 UTC 2016
pkgbase = vim-dart-plugin-git
pkgdesc = Syntax highlighting for Dart in Vim
- pkgver = 0.1.0
+ pkgver = 0.1.0.r42.g940adde
pkgrel = 1
url = https://github.com/dart-lang/dart-vim-plugin
arch = any
license = BSD
makedepends = git
- depends = vim
+ depends = vim-runtime
provides = vim-dart-plugin
conflicts = vim-dart-plugin
- source = git+https://github.com/dart-lang/dart-vim-plugin.git
- md5sums = SKIP
+ source = vim-dart-plugin-git::git+https://github.com/dart-lang/dart-vim-plugin.git
+ sha512sums = SKIP
pkgname = vim-dart-plugin-git
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"
}