xinput-calibrator 0.5.0: Add desktop file so it has a link in menus.
authorDavid-John Willis <John.Willis@Distant-earth.com>
Thu, 21 Jan 2010 19:35:46 +0000 (19:35 +0000)
committerKoen Kooi <koen@openembedded.org>
Sun, 24 Jan 2010 09:11:31 +0000 (10:11 +0100)
* As the app supports runtime config of touchscreens an icon for the app seems like a good idea.

recipes/xinput-calibrator/xinput-calibrator-0.5.0/xinput-calibrator.desktop [new file with mode: 0644]
recipes/xinput-calibrator/xinput-calibrator_0.5.0.bb

diff --git a/recipes/xinput-calibrator/xinput-calibrator-0.5.0/xinput-calibrator.desktop b/recipes/xinput-calibrator/xinput-calibrator-0.5.0/xinput-calibrator.desktop
new file mode 100644 (file)
index 0000000..813d7c1
--- /dev/null
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=Calibrate Xinput Touchscreen
+Name[de]=Xinput Touchscreen Kalibrieren
+Comment=Run the calibration tool for Xinput touchscreens
+Encoding=UTF-8
+Exec=/usr/bin/xinput_calibrator
+Terminal=false
+Type=Application
+Icon=calibrate
+StartupNotify=true
+Categories=System;Settings;
index b01d4fd..8f31520 100644 (file)
@@ -3,13 +3,17 @@ DEPENDS = "virtual/libx11 libxi"
 SRCREV  = "6af268f1b435f7bdd83335092ddc684054df2110"
 SRC_URI = "git://github.com/tias/xinput_calibrator.git;protocol=git \
            file://0001-switch-to-autotools-based-build-system.patch;patch=1 \
-           file://0002-gui_x11.cpp-Load-font-fixed-when-9x15-fails-in-GuiCa.patch;patch=1"
+           file://0002-gui_x11.cpp-Load-font-fixed-when-9x15-fails-in-GuiCa.patch;patch=1 \
+           file://xinput-calibrator.desktop \
+"
 
-PR = "r1"
+PR = "r2"
 inherit autotools
 S = "${WORKDIR}/git/"
 
 do_install() {
        install -d ${D}${bindir}
        install -m 0755 xinput_calibrator_x11 ${D}${bindir}/xinput_calibrator
+       install -d ${D}${datadir}/applications/ 
+       install -m 0755 ${WORKDIR}/xinput-calibrator.desktop ${D}${datadir}/applications/xinput-calibrator.desktop      
 }