diff options
author | Matteo Pasotti <matteo@mageia.org> | 2013-01-07 17:17:05 +0000 |
---|---|---|
committer | Matteo Pasotti <matteo@mageia.org> | 2013-01-07 17:17:05 +0000 |
commit | 7ff32d873460c70bc158a8cc38c04132926e5791 (patch) | |
tree | 687ddd2060e10fc9cf530870f46c96442b623566 /modules/rpmdragora/mime | |
parent | 80b79c965d0fa811d8c6433fd999bfaebe48d2f2 (diff) | |
download | manatools-7ff32d873460c70bc158a8cc38c04132926e5791.tar manatools-7ff32d873460c70bc158a8cc38c04132926e5791.tar.gz manatools-7ff32d873460c70bc158a8cc38c04132926e5791.tar.bz2 manatools-7ff32d873460c70bc158a8cc38c04132926e5791.tar.xz manatools-7ff32d873460c70bc158a8cc38c04132926e5791.zip |
- imported rpmdragora module (still under development)
Diffstat (limited to 'modules/rpmdragora/mime')
-rw-r--r-- | modules/rpmdragora/mime/Makefile | 23 | ||||
-rw-r--r-- | modules/rpmdragora/mime/gurpmi.addmedia.desktop.in | 8 | ||||
-rw-r--r-- | modules/rpmdragora/mime/urpmi-media.xml | 7 | ||||
-rw-r--r-- | modules/rpmdragora/mime/x-urpmi-media.desktop.in | 5 |
4 files changed, 43 insertions, 0 deletions
diff --git a/modules/rpmdragora/mime/Makefile b/modules/rpmdragora/mime/Makefile new file mode 100644 index 00000000..078b0287 --- /dev/null +++ b/modules/rpmdragora/mime/Makefile @@ -0,0 +1,23 @@ +PREFIX = /usr/local +DATADIR = $(PREFIX)/share +MIMEDIR = $(DATADIR)/mime/packages/ +MIMELNKDIR= $(DATADIR)/mimelnk/application/ +APPDIR = $(DATADIR)/applications/ + +DESKTOP_IN := $(wildcard *.desktop.in) +DESKTOP = $(DESKTOP_IN:.desktop.in=.desktop) + +all: $(DESKTOP) + +clean: + rm -f $(DESKTOP) + +install: all + install -d $(MIMEDIR) $(MIMELNKDIR) $(APPDIR) + install -m644 gurpmi.addmedia.desktop $(APPDIR)/ + install -m644 x-urpmi-media.desktop $(MIMELNKDIR)/ + install -m644 urpmi-media.xml $(MIMEDIR)/ + +%.desktop: %.desktop.in + intltool-merge --utf8 ../po $< $@ -d -u -c intltool-merge-cache + diff --git a/modules/rpmdragora/mime/gurpmi.addmedia.desktop.in b/modules/rpmdragora/mime/gurpmi.addmedia.desktop.in new file mode 100644 index 00000000..047e2c2a --- /dev/null +++ b/modules/rpmdragora/mime/gurpmi.addmedia.desktop.in @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +_Name=Add urpmi media +Exec=gurpmi.addmedia %f +MimeType=application/x-urpmi-media; +NoDisplay=true +Categories=GTK;System;PackageManager; + diff --git a/modules/rpmdragora/mime/urpmi-media.xml b/modules/rpmdragora/mime/urpmi-media.xml new file mode 100644 index 00000000..b8c0e0a3 --- /dev/null +++ b/modules/rpmdragora/mime/urpmi-media.xml @@ -0,0 +1,7 @@ +<?xml version="1.0"?> +<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> + <mime-type type="application/x-urpmi-media"> + <comment>urpmi medium info</comment> + <glob pattern="*.urpmi-media"/> + </mime-type> +</mime-info> diff --git a/modules/rpmdragora/mime/x-urpmi-media.desktop.in b/modules/rpmdragora/mime/x-urpmi-media.desktop.in new file mode 100644 index 00000000..f54cdeae --- /dev/null +++ b/modules/rpmdragora/mime/x-urpmi-media.desktop.in @@ -0,0 +1,5 @@ +[Desktop Entry] +Type=MimeType +_Comment=Urpmi medium info +MimeType=application/x-urpmi-media +Patterns=*.urpmi-media; |