luci-app-xlnetacc: rewrite makefile (#7784)

This commit is contained in:
Beginner 2021-08-31 23:10:33 +08:00 committed by GitHub
parent f5cb3a0af4
commit 3d92784881
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,32 +4,16 @@ PKG_NAME:=luci-app-xlnetacc
PKG_VERSION:=1.0.5
PKG_RELEASE:=2
include $(INCLUDE_DIR)/package.mk
PKG_MAINTAINER:=Sense <sensec@gmail.com>
define Package/$(PKG_NAME)
SECTION:=luci
CATEGORY:=LuCI
SUBMENU:=3. Applications
TITLE:=LuCI Support for XLNetAcc
PKGARCH:=all
DEPENDS:=+jshn +curl +openssl-util
MAINTAINER:=Sense <sensec@gmail.com>
endef
define Build/Compile
endef
LUCI_TITLE:=LuCI Support for XLNetAcc
LUCI_PKGARCH:=all
LUCI_DEPENDS:=+jshn +curl +openssl-util
define Package/$(PKG_NAME)/conffiles
/etc/config/xlnetacc
/etc/config/xlnetacc
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)/
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/i18n
po2lmo ./po/zh-cn/xlnetacc.po $(1)/usr/lib/lua/luci/i18n/xlnetacc.zh-cn.lmo
endef
include $(TOPDIR)/feeds/luci/luci.mk
$(eval $(call BuildPackage,$(PKG_NAME)))
# call BuildPackage - OpenWrt buildroot signature