From a927068d51d283109486ecf64fac88fba0994531 Mon Sep 17 00:00:00 2001 From: Baptiste Durand Date: Mon, 16 Mar 2015 10:45:17 +0100 Subject: [PATCH] app-installer build Change-Id: I22e3e420a78f911f351b000241f3982a838cdbf0 Signed-off-by: Baptiste Durand --- .../app-installers/app-installers.inc | 126 +++++++++++++++++++++ .../app-installers/app-installers_git.bb | 10 ++ 2 files changed, 136 insertions(+) create mode 100644 meta-tizen-common-base/recipes-application-framework/app-installers/app-installers.inc create mode 100644 meta-tizen-common-base/recipes-application-framework/app-installers/app-installers_git.bb diff --git a/meta-tizen-common-base/recipes-application-framework/app-installers/app-installers.inc b/meta-tizen-common-base/recipes-application-framework/app-installers/app-installers.inc new file mode 100644 index 0000000..c774cac --- /dev/null +++ b/meta-tizen-common-base/recipes-application-framework/app-installers/app-installers.inc @@ -0,0 +1,126 @@ +DESCRIPTION = "Application Information Installer" +HOMEPAGE = "http://nohomepage.org" +SECTION = "Application Framework/Package Management" +LICENSE = "Apache-2.0" +PV = "1.0" + +SRC_URI = "" + +S = "${WORKDIR}/git" + +inherit manifest package + +BBCLASSEXTEND = "" +PROVIDES = "" + + +PROVIDES += " wgt-backend xpk-backend " + +RDEPENDS = "" +RDEPENDS_wgt-backend += "${PN} tizen-platform-config" +RDEPENDS_xpk-backend += "${PN} tizen-platform-config" + + + + +DEPENDS = "" +inherit tizen_cmake +DEPENDS += "tizen-platform-config" +inherit pkgconfig +DEPENDS += "boost pkgmgr pkgmgr-info pkgmgr-installer" +DEPENDS += "security-manager openssl libxml2 zlib minizip lzip xmlsec1 vconf " + + +do_configure() { + cd ${S} + cp ./packaging/wgt-backend.manifest . + LANG=C + export LANG + unset DISPLAY + LD_AS_NEEDED=1; export LD_AS_NEEDED ; + + CFLAGS="$CFLAGS -fpic" + cmake \ + -DCMAKE_VERBOSE_MAKEFILE=ON \ + -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \ + -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \ + -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \ + -DLIB_INSTALL_DIR:PATH=${prefix}/lib \ + -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \ + -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \ + -DCMAKE_SKIP_RPATH:BOOL=ON \ + -DBUILD_SHARED_LIBS:BOOL=ON \ + -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \ + ${EXTRA_OECMAKE} . -DWRT_LAUNCHER=/usr/bin/xwalk-launcher \ + -DBUILD_PKGTYPE=rpm +} + +do_compile() { + cd ${S} + LANG=C + export LANG + unset DISPLAY + LD_AS_NEEDED=1; export LD_AS_NEEDED ; + + CFLAGS="$CFLAGS -fpic" + + oe_runmake + +} + +do_install_prepend() { + cd ${S} +} + +do_install_append() { + rm -f ${D}${infodir}/dir + find ${D} -regex ".*\.la$" | xargs rm -f -- + find ${D} -regex ".*\.a$" | xargs rm -f -- + +} + +pkg_postinst_${PN}() { + #!/bin/sh -e + + mkdir -p $D${prefix}/share/icons/default/small + mkdir -p $D${prefix}/share/packages + mkdir -p $D/etc/package-manager/backendlib + mkdir -p $D/etc/package-manager/backend + ln -sf ${prefix}/bin/wgt-backend $D/etc/package-manager/backend/wgt + ln -sf ${prefix}/bin/xgt-backend $D/etc/package-manager/backend/xpk + ln -sf ${prefix}/bin/tpk-backend $D/etc/package-manager/backend/tpk + +} + +pkg_postrm_${PN}() { + #!/bin/sh -e + + [ "x$D" == "x" ] && ldconfig + if [ $1 == 0 ]; then + rm -f $D${prefix}/dbspace/.app_info.db* + fi + +} + +PACKAGES += "wgt-backend" +PACKAGES += "xpk-backend" +PACKAGES += "tpk-backend" +PKG_wgt-backend = "wgt-backend" +PKG_xpk-backend = "xpk-backend" +PKG_tpk-backend = "tpk-backend" + +app-installer_files = "" +app-installer_files += "${prefix}/lib/libcommon-installer.so.*" +app-installer_files += "${prefix}/lib/libcommon-installer-signature.so.*" +app-installer_files += "${prefix}/lib/libcommon-installer-utils.so.*" +app-installer_files += "${prefix}/lib/libcommon-installer-widget-manifest-parser.so.*" +app-installer_files += "/usr/share/app-installers/signature_schema.xsd" +MANIFESTFILES_wgt-backend = "wgt-backend.manifest" + +FILES_${PN} = "${app-installer_files}" +FILES_wgt-backend = "${bindir}/wgt-backend" +FILES_tpk-backend = "${bindir}/tpk-backend" + +RDEPENDS_wgt-backend = "app-installers" + + diff --git a/meta-tizen-common-base/recipes-application-framework/app-installers/app-installers_git.bb b/meta-tizen-common-base/recipes-application-framework/app-installers/app-installers_git.bb new file mode 100644 index 0000000..5dcb8dc --- /dev/null +++ b/meta-tizen-common-base/recipes-application-framework/app-installers/app-installers_git.bb @@ -0,0 +1,10 @@ +require app-installers.inc + +PRIORITY = "10" + +LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" + +SRC_URI += "git://review.tizen.org/platform/appfw/app-installers;tag=8fd471e4be4460278b9fa2ae6eb79cf0746c8a7d;nobranch=1" + +BBCLASSEXTEND += " native " + -- 2.7.4