Skip to content

Commit

Permalink
add desktop and mime-type files
Browse files Browse the repository at this point in the history
git-svn-id: https://dvbcut.svn.sourceforge.net/svnroot/dvbcut/trunk@167 36490176-9c1c-0410-b649-dbf2af5787bf
  • Loading branch information
too-tired committed Feb 24, 2010
1 parent 7b3decd commit 5e51607
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 5 deletions.
13 changes: 13 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
2010-02-24 Michael Riepe <[email protected]>

* DISTFILES:
Add new files.
* dvbcut.desktop.in:
Add desktop file template.
* dvbcut.xml:
Add mime type declaration for application/x-dvbcut.
* makefile.in:
Install new files.
* configure.in:
Create dvbcut.desktop from dvbcut.desktop.in.

2009-06-28 Michael Riepe <[email protected]>

* makefile.in:
Expand Down
2 changes: 2 additions & 0 deletions DISTFILES
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ debian/docs
debian/menu
debian/rules
dvbcut.1
dvbcut.desktop.in
dvbcut.kdevelop
dvbcut.kdevelop.filelist
dvbcut.kdevelop.pcs
dvbcut.kdevses
dvbcut.xml
ffmpeg.src/COPYING
ffmpeg.src/CREDITS
ffmpeg.src/Changelog
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.6.0
0.6.1-alpha
2 changes: 1 addition & 1 deletion configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,6 @@ AC_DEFINE(__STDC_CONSTANT_MACROS, 1, [Required for C++])
AC_DEFINE(_FILE_OFFSET_BITS, 64, [We are always using large files])
dnl AC_DEFINE(_LARGEFILE_SOURCE)

AC_OUTPUT([makefile src/Makefile])
AC_OUTPUT([makefile src/Makefile dvbcut.desktop])

# vi: set ts=8 sw=2 :
3 changes: 2 additions & 1 deletion debian/copyright
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
This is dvbcut, written and maintained by Sven Over <[email protected]>.
This is dvbcut, written by Sven Over <[email protected]> and
currently maintained by Michael Riepe <[email protected]>.

The original source can always be found at:
http://dvbcut.sourceforge.net/
Expand Down
14 changes: 14 additions & 0 deletions dvbcut.desktop.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=DVBcut
GenericName=DVB Cutting Program
NoDisplay=false
Comment=Cut DVB streams
Icon=@prefix@/share/dvbcut/icons/dvbcut.svg
TryExec=@prefix@/bin/dvbcut
Exec=@prefix@/bin/dvbcut %F
Terminal=false
MimeType=application/x-dvbcut;
Categories=AudioVideo;AudioVideoEditing;Qt;
StartupWMClass=Dvbcut
14 changes: 14 additions & 0 deletions dvbcut.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-dvbcut">
<comment xml:lang="en">DVBcut project file</comment>
<comment xml:lang="de">DVBcut-Projektdatei</comment>
<!-- use high priority to give this precedence over other XML files -->
<magic priority="100">
<match type="string" value="&lt;!DOCTYPE dvbcut&gt;" offset="0:47"/>
</magic>
<glob pattern="*.dvbcut"/>
<glob pattern="*.DVBCUT"/>
<sub-class-of type="text/xml"/>
</mime-type>
</mime-info>
9 changes: 7 additions & 2 deletions makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ datadir = @datadir@
mandir = @mandir@
man1dir = $(mandir)/man1

installdirs = $(DESTDIR)$(man1dir)
installdirs = $(DESTDIR)$(man1dir) \
$(DESTDIR)/usr/share/applications \
$(DESTDIR)/usr/share/mime/packages

INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
Expand All @@ -40,8 +42,11 @@ all check dep distfiles install mostlyclean clean distclean maintainer-clean::
all-local:
check-local:
dep-local:
install-local: $(installdirs) dvbcut.1
install-local: $(installdirs) dvbcut.1 dvbcut.desktop dvbcut.xml
$(INSTALL_DATA) dvbcut.1 $(DESTDIR)$(man1dir)/dvbcut.1
$(INSTALL_DATA) dvbcut.desktop $(DESTDIR)/usr/share/applications
$(INSTALL_DATA) dvbcut.xml $(DESTDIR)/usr/share/mime/packages
-update-mime-database $(DESTDIR)/usr/share/mime

$(installdirs):
$(SHELL) $(top_srcdir)/mkinstalldirs $@
Expand Down

0 comments on commit 5e51607

Please sign in to comment.