From 90a21056ebb10f74d5ea0412e2fff8b0f230c0e7 Mon Sep 17 00:00:00 2001 From: Ronan Le Martret Date: Thu, 16 Oct 2014 10:32:50 +0200 Subject: fix post script Change-Id: Ic8f324d1f7385227f346e1d9cb75bd75a1f15e58 --- .../ico-uxf-homescreen-sample-apps-extraconf.inc | 30 ++++++++++++++++++++++ .../ico-uxf-homescreen-extraconf.inc | 25 +++++++++++++++++- 2 files changed, 54 insertions(+), 1 deletion(-) diff --git a/recipes-tizen/ico-uxf-homescreen-sample-apps/ico-uxf-homescreen-sample-apps-extraconf.inc b/recipes-tizen/ico-uxf-homescreen-sample-apps/ico-uxf-homescreen-sample-apps-extraconf.inc index b7452583..57ada77b 100644 --- a/recipes-tizen/ico-uxf-homescreen-sample-apps/ico-uxf-homescreen-sample-apps-extraconf.inc +++ b/recipes-tizen/ico-uxf-homescreen-sample-apps/ico-uxf-homescreen-sample-apps-extraconf.inc @@ -5,3 +5,33 @@ do_configure_prepend() { FILES_${PN}-dbg += "${prefix}/apps/org.tizen.ico.app-soundsample/bin/.debug" FILES_${PN}-dbg += "${prefix}/apps/org.tizen.ico.app-vicsample/bin/.debug" + +pkg_postinst_${PN}() { + #!/bin/sh -e + + [ "x$D" == "x" ] && ldconfig + # This icons exists in main weston package so we don't package it in. + # Create a symbolic link to it instead. + ln -sf $D${prefix}/share/weston/terminal.png $D${prefix}/share/icons/default/small/ + # Update the app database. + #pkg_initdb + #ail_initdb + +} + +pkg_postrm_${PN}() { + #!/bin/sh -e + + if [ "$1" = "0" ]; then + [ "x$D" == "x" ] && ldconfig + rm -f $D${prefix}/share/applications/org.tizen.ico.app-soundsample.desktop + rm -f $D${prefix}/share/applications/org.tizen.ico.app-vicsample.desktop + rm -f $D${prefix}/share/applications/browser.desktop + rm -f $D${prefix}/share/applications/terminal.desktop + rm -f $D${prefix}/share/icons/default/small/terminal.png + # Update the app database. + #pkg_initdb + #ail_initdb + fi + +} \ No newline at end of file diff --git a/recipes-tizen/ico-uxf-homescreen/ico-uxf-homescreen-extraconf.inc b/recipes-tizen/ico-uxf-homescreen/ico-uxf-homescreen-extraconf.inc index 2ab6c3c0..f1db39ad 100644 --- a/recipes-tizen/ico-uxf-homescreen/ico-uxf-homescreen-extraconf.inc +++ b/recipes-tizen/ico-uxf-homescreen/ico-uxf-homescreen-extraconf.inc @@ -38,4 +38,27 @@ INSANE_SKIP_${PN} = "dev-so" FILES_${PN}-dbg += "${prefix}/apps/org.tizen.ico.onscreen/bin/.debug" FILES_${PN}-dbg += "${prefix}/apps/org.tizen.ico.statusbar/bin/.debug/StatusBar" FILES_${PN}-dbg += "${prefix}/apps/org.tizen.ico.homescreen/bin/.debug/HomeScreen" -FILES_${PN}-dbg += "${prefix}/apps/org.tizen.ico.system-controller/bin/.debug" \ No newline at end of file +FILES_${PN}-dbg += "${prefix}/apps/org.tizen.ico.system-controller/bin/.debug" + +pkg_postinst_${PN}() { + #!/bin/sh -e + + [ "x$D" == "x" ] && ldconfig + # Update the app database. + #pkg_initdb + #ail_initdb + +} + +pkg_postrm_${PN}() { + #!/bin/sh -e + + [ "x$D" == "x" ] && ldconfig + rm -f $D${prefix}/share/applications/org.tizen.ico.homescreen.desktop + rm -f $D${prefix}/share/applications/org.tizen.ico.statusbar.desktop + rm -f $D${prefix}/share/applications/org.tizen.ico.onscreen.desktop + rm -f $D${prefix}/share/applications/org.tizen.ico.system-controller.desktop + #pkg_initdb + #ail_initdb + +} \ No newline at end of file -- cgit v1.2.3