forked from skylovebeauty/luci-app-switch-lan-play
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (36 loc) · 1.37 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
50
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-switch-lan-play
PKG_VERSION=0.0.2
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/luci-app-switch-lan-play
SECTION:=luci
CATEGORY:=LuCI
SUBMENU:=3. Applications
DEPENDS:= +switch-lan-play +luci-lib-json
TITLE:=luci-app-switch-lan-play
PKGARCH:=all
endef
define Package/luci-app-switch-lan-play/description
LuCI web-interface for Switch Lan Play Client
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./* $(PKG_BUILD_DIR)/
endef
define Build/Compile
endef
define Package/luci-app-switch-lan-play/install
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/root/etc/config/switchlanplay $(1)/etc/config/switchlanplay
$(INSTALL_DIR) $(1)/etc
$(INSTALL_CONF) ./files/root/etc/switchlanplay_list.json $(1)/etc/switchlanplay_list.json
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/root/etc/init.d/switchlanplay $(1)/etc/init.d/switchlanplay
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/model/cbi
$(INSTALL_DATA) ./files/root/usr/lib/lua/luci/model/cbi/switchlanplay.lua $(1)/usr/lib/lua/luci/model/cbi/switchlanplay.lua
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller
$(INSTALL_DATA) ./files/root/usr/lib/lua/luci/controller/switchlanplay.lua $(1)/usr/lib/lua/luci/controller/switchlanplay.lua
endef
$(eval $(call BuildPackage,luci-app-switch-lan-play))