diff options
-rw-r--r-- | .SRCINFO | 31 | ||||
-rw-r--r-- | PKGBUILD | 67 | ||||
-rw-r--r-- | gvim.desktop | 10 |
3 files changed, 108 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..0a58f22 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,31 @@ +# Generated by makepkg 4.2.1 +# Mon Jun 1 14:57:23 UTC 2015 +pkgbase = gvim-hg + pkgdesc = Vi Improved, a highly configurable, improved version of the vi text editor. + pkgver = 7.4.192.r1.10d35c8b50e3 + pkgrel = 1 + url = http://www.vim.org/ + arch = i686 + arch = x86_64 + groups = editors + license = custom:vim + makedepends = mercurial + depends = gtk2 + depends = python3 + depends = ruby + depends = lua + depends = freetype2 + depends = libxt + provides = vim + provides = gvim + provides = vim-runtime + conflicts = vim + conflicts = gvim + conflicts = vim-runtime + source = vim::hg+https://vim.googlecode.com/hg/ + source = gvim.desktop + md5sums = SKIP + md5sums = 6e11c556ba3f2ce7dc05d9908188d604 + +pkgname = gvim-hg + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..ebcde94 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,67 @@ +pkgname=gvim-hg +pkgver=7.4.192.r1.10d35c8b50e3 +pkgrel=1 + +pkgdesc='Vi Improved, a highly configurable, improved version of the vi text editor.' +arch=('i686' 'x86_64') +url='http://www.vim.org/' +license=('custom:vim') + +groups=('editors') + +depends=('gtk2' 'python3' 'ruby' 'lua' 'freetype2' 'libxt') +makedepends=('mercurial') + +conflicts=('vim' 'gvim' 'vim-runtime') +provides=('vim' 'gvim' 'vim-runtime') + +source=('vim'::'hg+https://vim.googlecode.com/hg/' + 'gvim.desktop') +md5sums=('SKIP' + '6e11c556ba3f2ce7dc05d9908188d604') + +pkgver() { + cd vim + hg log -r "." --template "{sub('-', '.', strip(latesttag, 'v'))}.r{latesttagdistance}.{node|short}" +} + +build() { + cd vim + ./configure \ + --enable-acl \ + --disable-gpm \ + --with-x=yes \ + --prefix=/usr \ + --enable-cscope \ + --enable-gui=gtk2 \ + --enable-luainterp \ + --enable-multibyte \ + --disable-netbeans \ + --enable-perlinterp \ + --enable-rubyinterp \ + --with-features=huge \ + --disable-pythoninterp \ + --enable-python3interp \ + --localstatedir=/var/lib/vim \ + --with-compiledby='Arch Linux' + make +} + +package() { + cd vim + make DESTDIR="$pkgdir" install + + rm "$pkgdir"/usr/bin/ex + rm "$pkgdir"/usr/bin/view + + # Not sure why globstar isn't enabled in makepkg + shopt -s globstar + rm "$pkgdir"/usr/share/man/**/ex.1* + rm "$pkgdir"/usr/share/man/**/view.1* + shopt -u globstar + + install -Dm644 "$srcdir"/gvim.desktop "$pkgdir"/usr/share/applications/gvim.desktop + install -Dm644 runtime/vim48x48.png "$pkgdir"/usr/share/pixmaps/gvim.png + install -Dm644 runtime/doc/uganda.txt "$pkgdir"/usr/share/licenses/vim/license.txt +} + diff --git a/gvim.desktop b/gvim.desktop new file mode 100644 index 0000000..5673c78 --- /dev/null +++ b/gvim.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Vi IMproved +Comment=Powerful text editor with scripting functions and macro recorder +MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; +Exec=gvim -f %F +Icon=gvim +Type=Application +Terminal=false +X-XClassHintResName=VIM +Categories=Utility;TextEditor; |