diff options
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 42 |
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9d3e1ff6b736 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = vim-ultisnips-git + pkgdesc = TextMate-style snippets for Vim (git). + pkgver = 3.0.r381.g113a901 + pkgrel = 1 + url = https://github.com/SirVer/ultisnips + arch = any + groups = vim-plugins + license = GPL3 + makedepends = git + depends = vim + depends = python2 + conflicts = vim-ultisnips + replaces = vim-snipmate + source = ultisnips-git::git+https://github.com/SirVer/ultisnips.git + source = git+https://github.com/honza/vim-snippets.git + md5sums = SKIP + md5sums = SKIP + +pkgname = vim-ultisnips-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e79a514bb7f8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Christian Brendel <cdbrendel@gmail.com> +# Based on [community]'s vim-ultisnips: https://www.archlinux.org/packages/community/any/vim-ultisnips/ + +pkgname=vim-ultisnips-git +pkgver=3.0.r381.g113a901 +# Note that it's actually 3.1, but the git repo is mis-tagged +pkgrel=1 +pkgdesc='TextMate-style snippets for Vim (git).' +arch=('any') +url='https://github.com/SirVer/ultisnips' +license=('GPL3') +depends=('vim' 'python2') +groups=('vim-plugins') +replaces=('vim-snipmate') +conflicts=('vim-ultisnips') +makedepends=('git') +source=(ultisnips-git::git+https://github.com/SirVer/ultisnips.git + git+https://github.com/honza/vim-snippets.git) +md5sums=('SKIP' + 'SKIP') + +package() { + cd "${srcdir}/ultisnips-git" + + install -dm755 "$pkgdir/usr/share/vim/vimfiles/" + cp -r -t "$pkgdir/usr/share/vim/vimfiles/" pythonx after doc ftdetect autoload\ + ftplugin plugin syntax utils + + cd "${srcdir}/vim-snippets" + + install -dm755 "$pkgdir/usr/share/vim/vimfiles/" + cp -r -t "$pkgdir/usr/share/vim/vimfiles/" UltiSnips autoload snippets + + # compile .pyc and .pyo files (fixes FS#43121) + find "${pkgdir}" -name '*.py' -exec python2 -mpy_compile {} + + find "${pkgdir}" -name '*.py' -exec python2 -O -mpy_compile {} + +} + +pkgver() { + cd "ultisnips-git" + git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} |