--- /dev/null
+#
+# Copyright (C) 2015 OpenWrt
+# Author: Mirko Vogt <mirko@openwrt.org>
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=qt5script
+PKG_VERSION:=5.4.2
+PKG_RELEASE:=1
+PKG_MD5SUM:=a615a02ab48e1e8e94c161d65f6af2ad
+
+PKG_SYS_NAME:=qtscript-opensource-src-$(PKG_VERSION)
+PKG_SOURCE:=$(PKG_SYS_NAME).tar.xz
+PKG_SOURCE_URL:=http://download.qt-project.org/official_releases/qt/$(basename $(PKG_VERSION))/$(PKG_VERSION)/submodules
+
+PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_SYS_NAME)
+PKG_BUILD_PARALLEL:=1
+PKG_BUILD_DEPENDS:=qt5base
+PKG_INSTALL:=1
+
+include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/nls.mk
+-include $(STAGING_DIR)/host/mk/qmake.mk
+
+define Package/qt5script/Default
+ SECTION:=video-frameworks
+ CATEGORY:=Video
+ SUBMENU:=Frameworks and Toolkits
+ TITLE:=Qt5script
+ DEPENDS:=qt5script +qt5base-core
+ URL:=http://qt.io
+ MAINTAINER:=Mirko Vogt <mirko@openwrt.org>
+endef
+
+define Package/qt5script
+ $(call Package/qt5script/Default)
+ DEPENDS:=+qt5base
+ MENU:=1
+endef
+
+define Package/qt5script-script
+ $(call Package/qt5script/Default)
+ TITLE+=script
+endef
+
+define Package/qt5script-scriptTools
+ $(call Package/qt5script/Default)
+ TITLE+=scriptTools
+ DEPENDS+=+qt5base-gui +qt5base-widgets +qt5script-script
+endef
+
+define Package/qt5script-examples
+ $(call Package/qt5script/Default)
+ TITLE+=examples
+ DEPENDS+=+qt5script-scriptTools
+endef
+
+define Build/Configure
+ $(call Build/Configure/Default,qtscript)
+endef
+
+define Build/InstallDev
+ $(call Build/Install/HostFiles,$(1))
+ $(call Build/Install/Headers,$(1))
+ $(call Build/Install/Libs,$(1),*)
+endef
+
+define Package/qt5script-script/install
+ $(call Build/Install/Libs,$(1),libQt5Script)
+endef
+
+define Package/qt5script-scriptTools/install
+ $(call Build/Install/Libs,$(1),libQt5ScriptTools)
+endef
+
+define Package/qt5script-examples/install
+ $(call Build/Install/Examples,$(1))
+endef
+
+$(eval $(call BuildPackage,qt5script))
+$(eval $(call BuildPackage,qt5script-script))
+$(eval $(call BuildPackage,qt5script-scriptTools))
+$(eval $(call BuildPackage,qt5script-examples))