From: Samir Benmendil Date: Tue, 16 Dec 2014 14:15:05 +0000 (+0000) Subject: vim: add PKGBUILD ultisnips X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/b304658789f63535871fbd84c5f41582964951d1 vim: add PKGBUILD ultisnips --- diff --git a/vim/ultisnips/PKGBUILD.snippets b/vim/ultisnips/PKGBUILD.snippets new file mode 100644 index 0000000..ef52592 --- /dev/null +++ b/vim/ultisnips/PKGBUILD.snippets @@ -0,0 +1,23 @@ +snippet prep "prepare() function" b +prepare() { + cd ${1:$pkgname-$pkgver} + $0 +} +endsnippet + +snippet build "build() function" b +build() { + cd ${1:$pkgname-$pkgver} + ./configure \ + --prefix=/usr $2 + $0 +} +endsnippet + +snippet pack "package() function" b +package() { + cd ${1:$pkgname-$pkgver} + make DESTDIR="$pkgdir" install + $0 +} +endsnippet