]> git.rmz.io Git - dotfiles.git/commitdiff
vim: add PKGBUILD ultisnips
authorSamir Benmendil <samir.benmendil@gmail.com>
Tue, 16 Dec 2014 14:15:05 +0000 (14:15 +0000)
committerSamir Benmendil <samir.benmendil@gmail.com>
Tue, 16 Dec 2014 14:15:05 +0000 (14:15 +0000)
vim/ultisnips/PKGBUILD.snippets [new file with mode: 0644]

diff --git a/vim/ultisnips/PKGBUILD.snippets b/vim/ultisnips/PKGBUILD.snippets
new file mode 100644 (file)
index 0000000..ef52592
--- /dev/null
@@ -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