summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..dc4d7fcb973
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Polichronucci <nick at discloud dot eu>
+
+pkgname=vim-neomutt-git
+pkgver=r9.b224ff5
+pkgrel=1
+pkgdesc='Vim syntax for neomutt.'
+arch=('any')
+url='https://github.com/neomutt/neomutt.vim'
+license=('GPL2')
+depends=('neomutt' 'vim')
+makedepends=('git')
+source=("${pkgname}"::"git+$url")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ cd "$srcdir/${pkgname}"
+
+ local _vimfiles="$pkgdir/usr/share/vim/vimfiles"
+ for dir in */
+ do
+ for file in ${dir}*
+ do
+ install -Dm644 "${file}" "$_vimfiles/${file}"
+ done
+ done
+}