forked from ilxp/luci-app-ikoolproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (31 loc) · 1.02 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
include $(TOPDIR)/rules.mk
PKG_NAME:=koolproxy
PKG_VERSION:=3.8.5
PKG_RELEASE:=$(AUTORELEASE)
include $(INCLUDE_DIR)/package.mk
define Package/koolproxy
SECTION:=multimedia
CATEGORY:=Multimedia
DEPENDS:=@(aarch64||arm||i386||mips||mipsel||x86_64)
TITLE:=koolproxy bin is from koolshare
URL:=https://github.com/houzi-/CDN
endef
define Build/Compile
endef
define Package/koolproxy/install
$(INSTALL_DIR) $(1)/usr/share/koolproxy
ifeq ($(ARCH),aarch64)
$(INSTALL_BIN) ./files/aarch64 $(1)/usr/share/koolproxy/koolproxy
else ifeq ($(ARCH),arm)
$(INSTALL_BIN) ./files/arm $(1)/usr/share/koolproxy/koolproxy
else ifeq ($(ARCH),i386)
$(INSTALL_BIN) ./files/i386 $(1)/usr/share/koolproxy/koolproxy
else ifeq ($(ARCH),mips)
$(INSTALL_BIN) ./files/mips $(1)/usr/share/koolproxy/koolproxy
else ifeq ($(ARCH),mipsel)
$(INSTALL_BIN) ./files/mipsel $(1)/usr/share/koolproxy/koolproxy
else ifeq ($(ARCH),x86_64)
$(INSTALL_BIN) ./files/x86_64 $(1)/usr/share/koolproxy/koolproxy
endif
endef
$(eval $(call BuildPackage,koolproxy))