fix post script
authorRonan Le Martret <ronan@fridu.net>
Thu, 16 Oct 2014 08:32:50 +0000 (10:32 +0200)
committerRonan Le Martret <ronan@fridu.net>
Thu, 16 Oct 2014 08:32:50 +0000 (10:32 +0200)
Change-Id: Ic8f324d1f7385227f346e1d9cb75bd75a1f15e58

recipes-tizen/ico-uxf-homescreen-sample-apps/ico-uxf-homescreen-sample-apps-extraconf.inc
recipes-tizen/ico-uxf-homescreen/ico-uxf-homescreen-extraconf.inc

index b745258..57ada77 100644 (file)
@@ -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
index 2ab6c3c..f1db39a 100644 (file)
@@ -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