mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
43 lines
1,008 B
Makefile
43 lines
1,008 B
Makefile
#
|
|
# Copyright (C) 2022 IOPSYS
|
|
#
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=usp-js
|
|
PKG_VERSION:=1.2.7
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL:=https://dev.iopsys.eu/websdk/usp-js.git
|
|
PKG_SOURCE_VERSION:=a4be8f6d8442d56c632514abb16f3de0817fb22f
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
|
PKG_MIRROR_HASH:=skip
|
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
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 +@OBUSPA_ENABLE_TEST_CONTROLLER_LOCAL
|
|
EXTRA_DEPENDS:=obuspa mosquitto-ssl
|
|
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) && yarn install && 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))
|