diff options
-rw-r--r-- | .SRCINFO | 40 | ||||
-rw-r--r-- | PKGBUILD | 85 | ||||
-rw-r--r-- | gvim-git.install | 12 | ||||
-rw-r--r-- | gvim.desktop | 63 |
4 files changed, 200 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0c862a3eff79 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,40 @@ +pkgbase = gvim-git + pkgdesc = Vim the editor. CLI version and GTK2 GUI providing majority of features. + pkgver = 7.4.824 + pkgrel = 1 + url = http://www.vim.org + install = gvim-git.install + arch = i686 + arch = x86_64 + license = custom:vim + makedepends = git + makedepends = lua + makedepends = python + makedepends = python2 + makedepends = ruby + depends = vim-runtime-git + depends = gtk2 + depends = hicolor-icon-theme + depends = gtk-update-icon-cache + depends = desktop-file-utils + optdepends = lua: Lua interpreter + optdepends = perl: Perl interpreter + optdepends = python: Python 3 interpreter + optdepends = python2: Python 2 interpreter + optdepends = ruby: Ruby interpreter + provides = gvim + provides = xxd + conflicts = vim-minimal-git + conflicts = vim-git + conflicts = vim-minimal + conflicts = vim + conflicts = vim-python3 + conflicts = gvim + conflicts = gvim-python3 + source = git+https://github.com/vim/vim.git + source = gvim.desktop + sha256sums = SKIP + sha256sums = 97e94c3ca5825d6ab50096eb8449adf1b05c88ad13e60e6a99be8daacc797eac + +pkgname = gvim-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1430d0b805ef --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,85 @@ +# Maintainer: Peter Mattern <pmattern at arcor dot de> + +# Interpreters are handled by value "dynamic" of configure options +# '--enable-<language>interp' and can thus be chosen at runtime by installing appropriate +# packages. Counterpart of Vim packages '-python3' no longer needed, IMHO. + +_pkgname=vim +pkgname="gvim-git" +pkgver=7.4.824 +pkgrel=1 +pkgdesc="Vim the editor. CLI version and GTK2 GUI providing majority of features." +arch=("i686" "x86_64") +url="http://www.vim.org" +license=("custom:vim") +depends=("vim-runtime-git" "gtk2" "hicolor-icon-theme" "gtk-update-icon-cache" "desktop-file-utils") +optdepends=("lua: Lua interpreter" "perl: Perl interpreter" "python: Python 3 interpreter" + "python2: Python 2 interpreter" "ruby: Ruby interpreter") +makedepends=("git" "lua" "python" "python2" "ruby") +provides=("gvim" "xxd") +conflicts=("vim-minimal-git" "vim-git" + "vim-minimal" "vim" "vim-python3" "gvim" "gvim-python3") +source=("git+https://github.com/vim/vim.git" + "gvim.desktop") +sha256sums=("SKIP" + "97e94c3ca5825d6ab50096eb8449adf1b05c88ad13e60e6a99be8daacc797eac") +install=gvim-git.install + +pkgver() { + cd $_pkgname + git describe --tags | sed 's/^v//;s/-/./g' +} + +prepare() { + + # set global configuration files to /etc/[g]vimrc + sed -i 's|^.*\(#define SYS_.*VIMRC_FILE.*"\) .*$|\1|' $_pkgname/src/feature.h + +} + +build() { + + cd $_pkgname + ./configure \ + --enable-fail-if-missing \ + --with-compiledby='Arch Linux AUR' \ + --prefix=/usr \ + --enable-gui=gtk2 \ + --with-features=huge \ + --enable-cscope \ + --enable-multibyte \ + --enable-perlinterp=dynamic \ + --enable-pythoninterp=dynamic \ + --enable-python3interp=dynamic \ + --enable-rubyinterp=dynamic \ + --enable-luainterp=dynamic + make + +} + +package() { + + # actual installation + cd $_pkgname + make DESTDIR=$pkgdir install + + # desktop entry file and corresponding icon + install -D -m644 ../gvim.desktop $pkgdir/usr/share/applications/gvim.desktop + install -D -m644 runtime/vim48x48.png $pkgdir/usr/share/icons/hicolor/48x48/apps/gvim.png + + # remove ex/view and man pages (normally provided by package 'vi' on Arch Linux) + cd $pkgdir/usr/bin ; rm ex view + find $pkgdir/usr/share/man -type d -name 'man1' 2>/dev/null | \ + while read _mandir; do + cd ${_mandir} + rm -f ex.1 view.1 + done + + # remove components provided by vim-runtime-git + cd $pkgdir + rm -R usr/share/vim + + # add license + install -D -m644 $srcdir/$_pkgname/runtime/doc/uganda.txt \ + $pkgdir/usr/share/licenses/$pkgname/LICENSE +} diff --git a/gvim-git.install b/gvim-git.install new file mode 100644 index 000000000000..f41381c2b1c5 --- /dev/null +++ b/gvim-git.install @@ -0,0 +1,12 @@ +post_install() { + gtk-update-icon-cache -f /usr/share/icons/hicolor + update-desktop-database --quiet +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} diff --git a/gvim.desktop b/gvim.desktop new file mode 100644 index 000000000000..675357da59eb --- /dev/null +++ b/gvim.desktop @@ -0,0 +1,63 @@ +[Desktop Entry] +Name=Vi IMproved +Name[bg]=Vi Ðåäàêòîð +Name[ca]=Vi Millorat +Name[da]=Vi forbedret +Name[eo]=VIM +Name[et]=Täiustatud Vi (vim) +Name[fr]=Vi étendu (VIM) +Name[he]=רפושמ Vi +Name[hu]=Vi +Name[is]=Vi IMproved ritillinn +Name[it]=Vi iMproved +Name[no]=Vi IMproved (forbedret VI) +Name[pl]=Poprawiony VI (vim) +Name[ro]=VIM +Name[ru]=Улучшенный VI +Name[sk]=Vi IMpreved +Name[sl]=Izboljšani vi (vim) +Name[sv]=Förbättrad Vi +Name[zh_CN.GB2312]=改进的 Vi +Comment=Powerful text editor with scripting functions and macro recorder +Comment[bg]=Ðåäàêòîð ñ ìíîãî âúçìîæíîñòè +Comment[ca]=Editor vi potent +Comment[cs]=Mocný textový editor vi +Comment[da]=En kraftig vi tekstbehandler +Comment[de]=Ein leistungsfähiger vi-Editor +Comment[el]=Πανίσχυρος διορθωτής vi +Comment[eo]=VIM similas al redaktilo "vi", sed havas aldonajn ecojn +Comment[es]=Una versión mejorada del editor vi +Comment[et]=Võimas tekstiredaktor vi +Comment[fi]=Tehokas vi-tekstieditori +Comment[fr]=Éditeur vi puissant +Comment[gl]=Potente editor vi +Comment[he]=Vi המצועה בר ךרועה +Comment[hr]=Napredni vi uređivač +Comment[hu]=Vi szövegszerkesztő +Comment[is]=Öflug útgáfa vi ritilsins +Comment[it]=Un editor vi potenziato +Comment[ja]=強力なViエディタ +Comment[lt]=Galingas vi redaktorius +Comment[mk]=Моќен VI уредувач +Comment[nl]=Krachtige vi-editor +Comment[no]=En kraftig vi-redigerer +Comment[no_NY]=Kraftig vi-tekstredigeringsprogram +Comment[pl]=Edytor vi +Comment[pt]=Um poderoso editor de texto +Comment[ro]=Un editor de texte VI, puternic +Comment[ru]=Мощный текстовый редактор vi +Comment[sk]=Silný textový procesor vi +Comment[sl]=Zmogljivi urejevalnik vi +Comment[sr]=Moćni vi editor +Comment[sv]=En kraftfull texteditor +Comment[ta]=ºì¾¢Å¡öó¾ vi ¦¾¡ÌôÀ¡Ç÷ +Comment[tr]=Güçlü vi düzenleyicisi +Comment[uk]=Потужний редактор vi +Comment[zh_CN.GB2312]=功能强大的 vi 编辑器 +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; |