diff options
author | DaveB | 2018-08-22 14:36:41 +0200 |
---|---|---|
committer | DaveB | 2018-08-22 14:36:41 +0200 |
commit | 1eb7b57ba373eeb9414db9c022c5ca0d377f6453 (patch) | |
tree | b168f9d460cbd920ac2283a83d6c7af51aa32509 | |
parent | 5c3d8060b3c96004fc0901f77063e103656992e3 (diff) | |
download | aur-1eb7b57ba373eeb9414db9c022c5ca0d377f6453.tar.gz |
Fixed mime types
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 6 | ||||
-rw-r--r-- | memsource-editor.install | 16 | ||||
-rw-r--r-- | memsource-editor.xml | 3 |
4 files changed, 10 insertions, 21 deletions
@@ -1,9 +1,9 @@ # Generated by mksrcinfo v8 -# Tue Aug 21 16:07:42 UTC 2018 +# Wed Aug 22 12:36:41 UTC 2018 pkgbase = memsource-editor pkgdesc = A CAT translation tool, requires Memsource subscription pkgver = 6.217.2 - pkgrel = 1 + pkgrel = 2 url = http://www.memsource.com/ install = memsource-editor.install arch = x86_64 @@ -26,7 +26,7 @@ pkgbase = memsource-editor source = license.desktop sha256sums = 326f509f22cf3dcd995584d1088ec4b327ed3a9b51967fa259b8f759e11b2950 sha256sums = cecca627cc0371ce3b66f49922c70cd4147262d358f5fbace111cdf420bd9ce6 - sha256sums = b6e611ad7a037e496f7b97581657a56bf9b253a127ad759fe25be06683032ce9 + sha256sums = 8a40f0172dc948dfadec126b5ab9a4f983216034aa8fbf19a41b9466e6253866 sha256sums = 4802b77ffefd2cdd7526fec28a690f8dc560fef74501806b3485648dcac830fe sha256sums = 3c6d72cdb51dab05682d0c84153171de68ef14cf8b593dfd44123a9365dd1f1e @@ -5,7 +5,7 @@ pkgname=memsource-editor _pkg=MemsourceEditor _platform=ubuntu-14.04 pkgver=6.217.2 -pkgrel=1 +pkgrel=2 pkgdesc="A CAT translation tool, requires Memsource subscription" arch=('x86_64') license=('custom') @@ -33,7 +33,7 @@ source=("http://download.memsource.com/production/updates/memsource-editor/linux sha256sums=('326f509f22cf3dcd995584d1088ec4b327ed3a9b51967fa259b8f759e11b2950' 'cecca627cc0371ce3b66f49922c70cd4147262d358f5fbace111cdf420bd9ce6' - 'b6e611ad7a037e496f7b97581657a56bf9b253a127ad759fe25be06683032ce9' + '8a40f0172dc948dfadec126b5ab9a4f983216034aa8fbf19a41b9466e6253866' '4802b77ffefd2cdd7526fec28a690f8dc560fef74501806b3485648dcac830fe' '3c6d72cdb51dab05682d0c84153171de68ef14cf8b593dfd44123a9365dd1f1e') @@ -81,6 +81,6 @@ package() { ${pkgdir}/usr/share/icons/hicolor/${sz}x${sz}/apps/memsource-editor.png install -d ${pkgdir}/usr/share/icons/hicolor/${sz}x${sz}/mimetypes convert ${srcdir}/build/memsource-editor/application-x-mxliff.svg -resize ${sz}x${sz} \ - ${pkgdir}/usr/share/icons/hicolor/${sz}x${sz}/mimetypes/application-x-memsource-editor.png + ${pkgdir}/usr/share/icons/hicolor/${sz}x${sz}/mimetypes/memsource-translation.png done } diff --git a/memsource-editor.install b/memsource-editor.install index ae4b312ffd6d..ce56b6debf0f 100644 --- a/memsource-editor.install +++ b/memsource-editor.install @@ -1,21 +1,9 @@ post_install() { - gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor + gtk-update-icon-cache -t -f /usr/share/icons/hicolor update-mime-database /usr/share/mime - update-desktop-database -q - for sz in 16 24 32 36 48 64 96 128 192 256 - do - xdg-icon-resource install --size $sz --context mimetypes \ - /usr/share/icons/hicolor/${sz}x${sz}/mimetypes/application-x-memsource-editor.png \ - application-x-memsource-editor - done - xdg-mime install /usr/share/mime/application/x-memsource-editor.xml + update-desktop-database } post_remove() { post_install - for sz in 16 24 32 36 48 64 96 128 192 256 - do - xdg-icon-resource uninstall --size $sz --context mimetypes application-x-memsource-editor - done - xdg-mime uninstall /usr/share/mime/application/x-memsource-editor.xml } diff --git a/memsource-editor.xml b/memsource-editor.xml index c0fe5e10afdd..00c16a45c34e 100644 --- a/memsource-editor.xml +++ b/memsource-editor.xml @@ -1,7 +1,8 @@ <?xml version='1.0' encoding='utf-8'?> <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> - <mime-type type="application/x-memsource-editor"> + <mime-type type="application/x-memsource-editor-mxliff"> <comment>Memsource editor translation</comment> + <icon name="memsource-translation"/> <glob pattern="*.mxliff"/> </mime-type> </mime-info> |