File tree 2 files changed +39
-0
lines changed
2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Maintainer: Konstantin Podsvirov <[email protected] >
2
+
3
+ pkgname=editorconfig-vim
4
+ _pkgver=1.0.0-beta
5
+ pkgver=${_pkgver// -/ _}
6
+ pkgrel=1
7
+ pkgdesc=" EditorConfig plugin for Vim - editorconfig.org"
8
+ arch=(' i686' ' x86_64' )
9
+ url=" https://github.com/editorconfig/editorconfig-vim"
10
+ license=(" custom" )
11
+ groups=(" vim-plugins" )
12
+ depends=(" vim" )
13
+ install=vimdoc.install
14
+ source=(" ${pkgname} -${_pkgver} .tar.gz::https://github.com/editorconfig/editorconfig-vim/archive/v${_pkgver} .tar.gz" )
15
+ sha256sums=(" 2b2366f554af923ec13888c34ca8c53d95eee750801ea13c958b625a1d1f342d" )
16
+
17
+ package () {
18
+ mkdir -p ${pkgdir} /usr/share/vim/vimfiles/{plugin,doc,autoload}
19
+ cd " ${srcdir} /${pkgname} -${_pkgver} "
20
+ cp -r plugin/* ${pkgdir} /usr/share/vim/vimfiles/plugin/
21
+ cp doc/editorconfig.txt ${pkgdir} /usr/share/vim/vimfiles/doc/
22
+ cp -r autoload/* ${pkgdir} /usr/share/vim/vimfiles/autoload/
23
+ mkdir -p ${pkgdir} /usr/share/licenses/editorconfig-vim
24
+ cp LICENSE ${pkgdir} /usr/share/licenses/editorconfig-vim
25
+ }
Original file line number Diff line number Diff line change
1
+ post_install() {
2
+ echo -n "Updating vim help tags..."
3
+ /usr/bin/vim --noplugins -u NONE -U NONE \
4
+ --cmd ":helptags /usr/share/vim/vimfiles/doc" --cmd ":q" > /dev/null 2>&1
5
+ echo "done."
6
+ }
7
+
8
+ post_upgrade() {
9
+ post_install
10
+ }
11
+
12
+ post_remove() {
13
+ post_install
14
+ }
You can’t perform that action at this time.
0 commit comments