aboutsummaryrefslogtreecommitdiffstats
path: root/mime
diff options
context:
space:
mode:
Diffstat (limited to 'mime')
-rw-r--r--mime/Makefile23
-rw-r--r--mime/gurpmi.addmedia.desktop.in9
-rw-r--r--mime/urpmi-media.xml6
-rw-r--r--mime/x-urpmi-media.desktop.in4
4 files changed, 42 insertions, 0 deletions
diff --git a/mime/Makefile b/mime/Makefile
new file mode 100644
index 00000000..9329d9e8
--- /dev/null
+++ b/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
+ ../po/intltool-merge --utf8 ../po $< $@ -d -u -c ../po/.intltool-merge-cache
+
diff --git a/mime/gurpmi.addmedia.desktop.in b/mime/gurpmi.addmedia.desktop.in
new file mode 100644
index 00000000..0ea7300e
--- /dev/null
+++ b/mime/gurpmi.addmedia.desktop.in
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+_Name=Add urpmi media
+Exec=gurpmi.addmedia %u
+MimeType=application/x-urpmi-media;
+NoDisplay=true
+Categories=GTK;System;PackageManager;
+NoDisplay=true
+
diff --git a/mime/urpmi-media.xml b/mime/urpmi-media.xml
new file mode 100644
index 00000000..ba42954c
--- /dev/null
+++ b/mime/urpmi-media.xml
@@ -0,0 +1,6 @@
+<?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>
+ </mime-type>
+</mime-info>
diff --git a/mime/x-urpmi-media.desktop.in b/mime/x-urpmi-media.desktop.in
new file mode 100644
index 00000000..11f26640
--- /dev/null
+++ b/mime/x-urpmi-media.desktop.in
@@ -0,0 +1,4 @@
+[Desktop Entry]
+Type=MimeType
+_Comment=Urpmi medium info
+MimeType=application/x-urpmi-media