Merge pull request #13 from Beginner-Go/master

Rewrite Makefile
This commit is contained in:
老竭力 2021-09-04 16:39:18 +08:00 committed by GitHub
commit c5c28baf5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,46 +1,19 @@
#
# Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>
#
# This is free software, licensed under the Apache License, Version 2.0 .
#
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-argon-config
LUCI_PKGARCH:=all
PKG_VERSION:=0.9
PKG_RELEASE:=20210309
PKG_RELEASE:=20210904
include $(INCLUDE_DIR)/package.mk
PKG_MAINTAINER:=jerrykuku <jerrykuku@qq.com>
define Package/luci-app-argon-config
SECTION:=luci
CATEGORY:=LuCI
SUBMENU:=3. Applications
TITLE:=LuCI page for Argon Config
PKGARCH:=all
DEPENDS:=+luci-compat
LUCI_TITLE:=LuCI page for Argon Config
LUCI_PKGARCH:=all
LUCI_DEPENDS:=+luci-compat
define Package/$(PKG_NAME)/conffiles
/etc/config/argon
endef
define Build/Prepare
endef
define Build/Compile
endef
define Package/luci-app-argon-config/install
$(INSTALL_DIR) $(1)/usr/lib/lua/luci
cp -pR ./luasrc/* $(1)/usr/lib/lua/luci
$(INSTALL_DIR) $(1)/
cp -pR ./root/* $(1)/
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/i18n
po2lmo ./po/zh-cn/argon-config.po $(1)/usr/lib/lua/luci/i18n/argon-config.zh-cn.lmo
endef
$(eval $(call BuildPackage,luci-app-argon-config))
include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature