rxvt-unicode (5.6 and cvs): Add desktop file and icon
authorRichard Purdie <rpurdie@rpsys.net>
Mon, 10 Oct 2005 12:47:21 +0000 (12:47 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Mon, 10 Oct 2005 12:47:21 +0000 (12:47 +0000)
packages/rxvt-unicode/files/rxvt.desktop [new file with mode: 0644]
packages/rxvt-unicode/files/rxvt.png [new file with mode: 0644]
packages/rxvt-unicode/rxvt-unicode_5.6.bb
packages/rxvt-unicode/rxvt-unicode_cvs.bb

diff --git a/packages/rxvt-unicode/files/rxvt.desktop b/packages/rxvt-unicode/files/rxvt.desktop
new file mode 100644 (file)
index 0000000..f372b28
--- /dev/null
@@ -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 (file)
index 0000000..e56fa2e
Binary files /dev/null and b/packages/rxvt-unicode/files/rxvt.png differ
index 92915bf..2f3f56c 100644 (file)
@@ -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"
index ceee7cd..4527853 100644 (file)
@@ -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"