forked from sirpdboy/luci-app-autotimeset
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (40 loc) · 1.17 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright (C) 2019-2021 sirpdboy https://github.com/sirpdboy/luci-app-autotimeset
#
# This is free software, licensed under the Apache License, Version 2.0 .
#
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-autotimeset
PKG_VERSION:=1.4
PKG_RELEASE:=20210320
define Package/$(PKG_NAME)
SECTION:=LuCI
CATEGORY:=LuCI
SUBMENU:=3. Applications
TITLE:=luci-app-autotimeset
DEPENDS:=+luci
DESCRIPTION:=LuCI support for Scheduled Time setting
PKGARCH:=all
endef
define Package/$(PKG_NAME)/description
Luci Support for autotimeset.
endef
define Build/Prepare
$(foreach po,$(wildcard ${CURDIR}/po/zh-cn/*.po), \
po2lmo $(po) $(PKG_BUILD_DIR)/$(patsubst %.po,%.lmo,$(notdir $(po)));)
endef
define Build/Compile
endef
define Package/$(PKG_NAME)/conffiles
/etc/config/autotimeset
/etc/autotimeset/
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
$(INSTALL_DATA) $(PKG_BUILD_DIR)/autotimeset.lmo $(1)/usr/lib/lua/luci/i18n/
endef
include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature