summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Mattern2015-12-12 00:02:02 +0100
committerPeter Mattern2015-12-12 00:12:43 +0100
commitc65452f55b778329d83bd6777c7bf7ec4878f4c2 (patch)
tree26f825988522d65c79f40ac16ecc541396376e2c
parent33b7173fc79bbbf0f801aaa7724dbadd4cad498f (diff)
downloadaur-c65452f55b778329d83bd6777c7bf7ec4878f4c2.tar.gz
MIME type handling
complement vim-qt.desktop with key MimeType, have .INSTALL run update-desktop-database (plus some minor polish)
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD8
-rw-r--r--vim-qt-qt5-git.install (renamed from vim-qt-git.install)1
-rw-r--r--vim-qt.desktop3
4 files changed, 13 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 58f5e69f59e..48283db2f5b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,11 @@
+# Generated by mksrcinfo v8
+# Fri Dec 11 23:12:28 UTC 2015
pkgbase = vim-qt-qt5-git
pkgdesc = An experimental Qt GUI for Vim. Built against Qt5.
pkgver = 20130201.47.ge1ebbe8
- pkgrel = 1
+ pkgrel = 2
url = https://bitbucket.org/equalsraf/vim-qt
- install = vim-qt-git.install
+ install = vim-qt-qt5-git.install
arch = i686
arch = x86_64
license = unknown
@@ -17,8 +19,8 @@ pkgbase = vim-qt-qt5-git
depends = gawk
depends = qt5-base
depends = libxkbcommon-x11
- depends = hicolor-icon-theme
depends = gtk-update-icon-cache
+ depends = desktop-file-utils
optdepends = lua: Lua interpreter
optdepends = python: Python 3 interpreter
optdepends = python2: Python 2 interpreter
@@ -43,7 +45,7 @@ pkgbase = vim-qt-qt5-git
source = git+https://github.com/equalsraf/vim-qt.git
source = vim-qt.desktop
sha256sums = SKIP
- sha256sums = ad2fe7c3d8436d2f62e251b9081512e37726c024ed4aac9534764749904f68d6
+ sha256sums = 0ff453488a4b04b6364e6a6a8fd17cf0bfe66ef2c19fd39cc9263d99845a0db5
pkgname = vim-qt-qt5-git
diff --git a/PKGBUILD b/PKGBUILD
index 1ac2eae15cd..b9fcbe5296b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,12 +9,12 @@
_pkgname=vim-qt
pkgname=$_pkgname-qt5-git
pkgver=20130201.47.ge1ebbe8
-pkgrel=1
+pkgrel=2
pkgdesc="An experimental Qt GUI for Vim. Built against Qt5."
arch=("i686" "x86_64")
url="https://bitbucket.org/equalsraf/vim-qt"
license=("unknown" "custom:vim")
-depends=("gpm" "gawk" "qt5-base" "libxkbcommon-x11" "hicolor-icon-theme" "gtk-update-icon-cache")
+depends=("gpm" "gawk" "qt5-base" "libxkbcommon-x11" "gtk-update-icon-cache" "desktop-file-utils")
optdepends=("lua: Lua interpreter" "python: Python 3 interpreter" "python2: Python 2 interpreter"
"ruby: Ruby interpreter")
makedepends=("git" "lua" "python" "python2" "ruby")
@@ -23,11 +23,11 @@ provides=("$_pkgname" "$_pkgname-git" "qvim"
"xxd")
conflicts=("$_pkgname" "$_pkgname-git" "qvim"
"vim-runtime" "vim" "vim-minimal" "vim-python3" "gvim" "gvim-python3")
-install=vim-qt-git.install
+install=vim-qt-qt5-git.install
source=("git+https://github.com/equalsraf/vim-qt.git"
"vim-qt.desktop")
sha256sums=("SKIP"
- "ad2fe7c3d8436d2f62e251b9081512e37726c024ed4aac9534764749904f68d6")
+ "0ff453488a4b04b6364e6a6a8fd17cf0bfe66ef2c19fd39cc9263d99845a0db5")
pkgver() {
cd $_pkgname
diff --git a/vim-qt-git.install b/vim-qt-qt5-git.install
index 272ceaacbab..d8179c06d12 100644
--- a/vim-qt-git.install
+++ b/vim-qt-qt5-git.install
@@ -1,5 +1,6 @@
post_install() {
gtk-update-icon-cache -f /usr/share/icons/hicolor
+ update-desktop-database
}
post_upgrade() {
diff --git a/vim-qt.desktop b/vim-qt.desktop
index 3835c549841..6e72bc0540a 100644
--- a/vim-qt.desktop
+++ b/vim-qt.desktop
@@ -6,6 +6,7 @@ Comment=Qt UI written in Qt similar to its GTK counterpart gvim
Icon=vim-qt
Categories=Utility;
TryExec=qvim
-Exec=qvim
+Exec=qvim -f %F
Terminal=false
StartupNotify=false
+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++;