include $(TOPDIR)/rules.mk PKG_NAME:=usp-js PKG_VERSION:=0.0.1 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://dev.iopsys.eu/websdk/usp-js.git PKG_SOURCE_VERSION:=7e285eb006414f230a3c17acf1b6f4c31c987447 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz PKG_MIRROR_HASH:=skip include $(INCLUDE_DIR)/package.mk define Package/usp-js SECTION:=libs CATEGORY:=Libraries TITLE:=A JS library for USP(TR369) protocol DEPENDS:=+quickjs +quickjs-websocket endef define Package/usp-js/description A JS library to provide USP(TR369) protocol functionality for an usp controller. endef define Build/Compile cd $(PKG_BUILD_DIR) && npm install @types/node --save-dev && yarn qjs endef define Package/usp-js/install $(INSTALL_DIR) $(1)/usr/lib/usp-js $(CP) $(PKG_BUILD_DIR)/qjs/* $(1)/usr/lib/usp-js/ endef $(eval $(call BuildPackage,usp-js))