include $(TOPDIR)/rules.mk

PKG_NAME:=luci-app-ipalarm
VERSION_YEAR=$(shell date +%Y)
VERSION_MAJOR=$(shell expr $(VERSION_YEAR) - 2018)
VERSION_MINOR=$(shell date +%V%u)
#VERSION_REVISION=$(shell date +%H%M)
VERSION_REVISION=0000
PKG_VERSION:=$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_REVISION)


include $(INCLUDE_DIR)/package.mk

define Package/$(PKG_NAME)
	SECTION:=DYIOT
	CATEGORY:=DYIOT Software
	TITLE:=backend for IP Alarm
	DEPENDS:=+luci-base +luci-lib-json +luci-theme-bootstrap
endef

define Package/$(PKG_NAME)/description
backend for IP Alarm
endef

define Build/Prepare
endef
define Build/Compile
endef

define Package/$(PKG_NAME)/install
	$(INSTALL_DIR) $(1)/usr/lib/lua/luci
	$(CP) ./luasrc/* $(1)/usr/lib/lua/luci
endef

$(eval $(call BuildPackage,$(PKG_NAME)))
