luci-app-pushbot: rewrite makefile (#7782)

Signed-off-by: Beginner-Go <70857188+Beginner-Go@users.noreply.github.com>
This commit is contained in:
Beginner 2021-09-01 23:19:20 +08:00 committed by GitHub
parent 48c9ee015a
commit 895c07b068
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,29 +6,14 @@ PKG_RELEASE:=10
PKG_MAINTAINER:=tty228 zzsj0928
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
SECTION:=luci
CATEGORY:=LuCI
SUBMENU:=3. Applications
DEPENDS:=+iputils-arping +curl
TITLE:=LuCI support for Pushbot
PKGARCH:=all
endef
define Build/Compile
endef
LUCI_TITLE:=LuCI support for Pushbot
LUCI_PKGARCH:=all
LUCI_DEPENDS:=+iputils-arping +curl
define Package/$(PKG_NAME)/conffiles
/etc/config/pushbot
/etc/config/pushbot
endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/lib/lua/luci
cp -pR ./luasrc/* $(1)/usr/lib/lua/luci
$(INSTALL_DIR) $(1)/
cp -pR ./root/* $(1)/
endef
include $(TOPDIR)/feeds/luci/luci.mk
$(eval $(call BuildPackage,$(PKG_NAME)))
# call BuildPackage - OpenWrt buildroot signature