diff --git a/meta-oe/recipes-support/smarty/smarty_4.5.5.bb b/meta-oe/recipes-support/smarty/smarty_5.4.2.bb
similarity index 63%
rename from meta-oe/recipes-support/smarty/smarty_4.5.5.bb
rename to meta-oe/recipes-support/smarty/smarty_5.4.2.bb
index e8a63a74a7..906b9e4ee2 100644
--- a/meta-oe/recipes-support/smarty/smarty_4.5.5.bb
+++ b/meta-oe/recipes-support/smarty/smarty_5.4.2.bb
@@ -7,21 +7,22 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=2c0f216b2120ffc367e20f2b56df51b3"
 
 DEPENDS += "php"
 
-SRC_URI = "git://github.com/smarty-php/smarty.git;protocol=https;branch=support/4"
-
-SRCREV = "c4851c12e34ff80073ddeb7d98b059d57dea9de2"
+SRC_URI = "git://github.com/smarty-php/smarty.git;protocol=https;branch=master"
 
 S = "${WORKDIR}/git"
 
+SRCREV = "642a97adcc2bf6c1b2458d6afeeb36ae001c1c2f"
+
+do_compile() {
+	:
+}
+
 do_install() {
         install -d ${D}${datadir}/php/smarty3/libs/
         install -m 0644 ${S}/libs/*.php ${D}${datadir}/php/smarty3/libs/
 
-        install -d ${D}${datadir}/php/smarty3/libs/plugins
-        install -m 0644 ${S}/libs/plugins/*.php ${D}${datadir}/php/smarty3/libs/plugins/
-
-        install -d ${D}${datadir}/php/smarty3/libs/sysplugins
-        install -m 0644 ${S}/libs/sysplugins/*.php ${D}${datadir}/php/smarty3/libs/sysplugins/
+        install -d ${D}${datadir}/php/smarty3/src/
+        cp -rf ${S}/src/* ${D}${datadir}/php/smarty3/src/
 }
 FILES:${PN} = "${datadir}/php/smarty3/"
 
