From: Richard Purdie Date: Mon, 10 Oct 2005 12:47:21 +0000 (+0000) Subject: rxvt-unicode (5.6 and cvs): Add desktop file and icon X-Git-Tag: Release-2010-05/1~9453^2~3286^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbf6ae23f89f1382acd48968b2131b031ad57f70;p=openembedded.git rxvt-unicode (5.6 and cvs): Add desktop file and icon --- diff --git a/packages/rxvt-unicode/files/rxvt.desktop b/packages/rxvt-unicode/files/rxvt.desktop new file mode 100644 index 0000000000..f372b28e97 --- /dev/null +++ b/packages/rxvt-unicode/files/rxvt.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Terminal +Exec=/usr/bin/rxvt +Icon=rxvt.png +Terminal=false +Type=Application +Categories=Utility +StartupNotify=false + diff --git a/packages/rxvt-unicode/files/rxvt.png b/packages/rxvt-unicode/files/rxvt.png new file mode 100644 index 0000000000..e56fa2e9cd Binary files /dev/null and b/packages/rxvt-unicode/files/rxvt.png differ diff --git a/packages/rxvt-unicode/rxvt-unicode_5.6.bb b/packages/rxvt-unicode/rxvt-unicode_5.6.bb index 92915bf872..2f3f56c2cc 100644 --- a/packages/rxvt-unicode/rxvt-unicode_5.6.bb +++ b/packages/rxvt-unicode/rxvt-unicode_5.6.bb @@ -8,8 +8,10 @@ same time, including Xft fonts." LICENSE = "GPL" SRC_URI = "http://dist.schmorp.de/rxvt-unicode/Attic/rxvt-unicode-${PV}.tar.bz2 \ file://xwc.patch;patch=1 \ - file://signedchar.patch;patch=1" -PR = "r2" + file://signedchar.patch;patch=1 \ + file://rxvt.desktop \ + file://rxvt.png" +PR = "r3" inherit autotools update-alternatives @@ -53,3 +55,14 @@ do_compile () { # docs need "yodl" and I have no idea what that is oe_runmake -C src "LIBTOOL=$LIBTOOL" } + +do_install_append () { + install -d ${D}/${datadir} + install -d ${D}/${datadir}/applications + install -d ${D}/${datadir}/pixmaps/ + + install -m 0644 ${WORKDIR}/rxvt.png ${D}/${datadir}/pixmaps + install -m 0644 ${WORKDIR}/rxvt.desktop ${D}/${datadir}/applications +} + +FILES_${PN} += "${datadir}/applications/rxvt.desktop ${datadir}/pixmaps/rxvt.png" diff --git a/packages/rxvt-unicode/rxvt-unicode_cvs.bb b/packages/rxvt-unicode/rxvt-unicode_cvs.bb index ceee7cd51a..45278534e5 100644 --- a/packages/rxvt-unicode/rxvt-unicode_cvs.bb +++ b/packages/rxvt-unicode/rxvt-unicode_cvs.bb @@ -10,7 +10,9 @@ LICENSE = "GPL" SRC_URI = "cvs://anonymous@cvs.schmorp.de/schmorpforge;module=rxvt-unicode \ file://xwc.patch;patch=1 \ file://signedchar.patch;patch=1 \ - file://makefile.patch;patch=1" + file://makefile.patch;patch=1 \ + file://rxvt.desktop \ + file://rxvt.png" inherit autotools update-alternatives @@ -56,3 +58,14 @@ do_compile () { # docs need "yodl" and I have no idea what that is oe_runmake -C src "LIBTOOL=$LIBTOOL" } + +do_install_append () { + install -d ${D}/${datadir} + install -d ${D}/${datadir}/applications + install -d ${D}/${datadir}/pixmaps/ + + install -m 0644 ${WORKDIR}/rxvt.png ${D}/${datadir}/pixmaps + install -m 0644 ${WORKDIR}/rxvt.desktop ${D}/${datadir}/applications +} + +FILES_${PN} += "${datadir}/applications/rxvt.desktop ${datadir}/pixmaps/rxvt.png"