Update heynoti recipe 50/22850/1
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Wed, 11 Jun 2014 10:14:14 +0000 (12:14 +0200)
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Thu, 12 Jun 2014 15:27:33 +0000 (17:27 +0200)
* New generated recipe from recent spec file.
* Add pre/post install/uninstall scripts.

Change-Id: Iae54212e8fe156d9857022590fd11ab740ffb4f2
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
recipes-tizen/heynoti/heynoti.inc
recipes-tizen/heynoti/heynoti_git.bb

index b36fcde..096f7ea 100644 (file)
@@ -1,7 +1,7 @@
 DESCRIPTION = "HEY (ligHt Easy speedy) notification library"
 HOMEPAGE = "http://nohomepage.org"
 SECTION = "System/Libraries"
-LICENSE = "Apache License, Version 2.0"
+LICENSE = "Apache-2.0"
 
 SRC_URI = ""
 
@@ -26,6 +26,7 @@ RDEPENDS_${PN}-dev += "heynoti"
 DEPENDS = ""
 #DEPENDS of heynoti 
 DEPENDS += "ecore"
+DEPENDS += "tizen-platform-config"
 DEPENDS_append_class-native = " cmake-native"
 DEPENDS_append_class-target = " cmake-native"
 DEPENDS += "dlog"
@@ -98,18 +99,33 @@ do_install() {
    find ${D} -regex ".*\.la$" | xargs rm -f -- 
    find ${D} -regex ".*\.a$" | xargs rm -f --
  
- mkdir -p ${D}/opt/share/noti
+ mkdir -p ${D}/usr/share/noti
+ mkdir -p ${D}/usr/share/license
+ install LICENSE ${D}/usr/share/license/heynoti
  
  
 }
 
+pkg_postinst_${PN}() {
+    #!/bin/sh -e
+
+    /sbin/ldconfig
+}
+
+pkg_postrm_${PN}() {
+    #!/bin/sh -e
+
+    /sbin/ldconfig
+}
+
 
 heynoti_files = ""
 heynoti_files += "heynoti.manifest"
 heynoti_files += "${prefix}/lib/libheynoti.so.0"
 heynoti_files += "${prefix}/lib/libheynoti.so.0.0.2"
 heynoti_files += "${prefix}/bin/heynotitool"
-heynoti_files += "/opt/share/noti"
+heynoti_files += "/usr/share/noti"
+heynoti_files += "/usr/share/license/heynoti"
 
 heynoti-dev_files = ""
 heynoti-dev_files += "heynoti.manifest"
index b9d5005..d1b16a6 100644 (file)
@@ -4,7 +4,7 @@ PRIORITY = "10"
 
 LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
 
-SRC_URI += "git://review.tizen.org/platform/core/appfw/heynoti;tag=bc2fb69c89c2046e58a1cd47a4b59acb43405bfa;nobranch=1"
+SRC_URI += "git://review.tizen.org/platform/core/appfw/heynoti;tag=3f82d6115368fb5a2d799436aecc7b339e6ae373;nobranch=1"
 
 BBCLASSEXTEND += " native "