summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD29
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..60b14d53f1b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = vim-wakatime-git
+ pkgdesc = Vim plugin for automatic time tracking and metrics generated from your programming activity.
+ pkgver = 4.0.12.r301.5fb3410
+ pkgrel = 1
+ url = https://github.com/wakatime/vim-wakatime
+ arch = any
+ groups = vim-plugins
+ license = BSD
+ makedepends = git
+ depends = vim
+ depends = python
+ provides = vim-wakatime
+ conflicts = vim-wakatime
+ source = git+https://github.com/wakatime/vim-wakatime.git
+ sha256sums = SKIP
+
+pkgname = vim-wakatime-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..637072661c7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: William Turner <willtur.will@gmail.com>
+pkgname=vim-wakatime-git
+pkgver=4.0.12.r301.5fb3410
+pkgrel=1
+pkgdesc='Vim plugin for automatic time tracking and metrics generated from your programming activity.'
+arch=('any')
+url='https://github.com/wakatime/vim-wakatime'
+license=('BSD')
+groups=('vim-plugins')
+depends=('vim' 'python')
+makedepends=('git')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=("git+https://github.com/wakatime/vim-wakatime.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/vim-wakatime"
+ printf "%s.r%s.%s" \
+ "$(grep -oP "(?<=VERSION = ')[^']+" plugin/wakatime.vim)" \
+ "$(git rev-list --count HEAD)" \
+ "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ cd "${srcdir}/vim-wakatime"
+ install -d -m755 "${pkgdir}/usr/share/vim/vimfiles"
+ find * -maxdepth 0 -type d -exec cp -rt "${pkgdir}/usr/share/vim/vimfiles/" '{}' \+
+}