This repository has been archived by the owner on Dec 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
frainzy1477
committed
Jun 30, 2019
1 parent
702993a
commit 54ffdc6
Showing
2 changed files
with
66 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=clash | ||
PKG_VERSION:=0.15.0 | ||
PKG_RELEASE:=1 | ||
PKG_MAINTAINER:=frainzy1477 | ||
|
||
ifeq ($(ARCH),mipsel) | ||
PKG_ARCH:=mipsle | ||
endif | ||
ifeq ($(ARCH),mips) | ||
PKG_ARCH:=mips64 | ||
endif | ||
ifeq ($(ARCH),i386) | ||
PKG_ARCH:=386 | ||
endif | ||
ifeq ($(ARCH),x86_64) | ||
PKG_ARCH:=amd64 | ||
endif | ||
ifeq ($(ARCH),arm) | ||
PKG_ARCH:=armv6 | ||
ifneq ($(BOARD),bcm53xx) | ||
PKG_ARCH:=armv7 | ||
endif | ||
ifeq ($(BOARD),kirkwood) | ||
PKG_ARCH:=armv5 | ||
endif | ||
endif | ||
ifeq ($(ARCH),aarch64) | ||
PKG_ARCH:=armv8 | ||
endif | ||
|
||
PKG_SOURCE:=clash-linux-$(PKG_ARCH)-v$(PKG_VERSION).gz | ||
PKG_SOURCE_URL:=https://github.com/Dreamacro/clash/releases/download/v$(PKG_VERSION)/ | ||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) | ||
PKG_HASH:=skip | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Package/$(PKG_NAME) | ||
SECTION:=net | ||
CATEGORY:=Network | ||
TITLE:=clash is a cross-platform proxy software | ||
DEPENDS:= | ||
URL:=https://github.com/Dreamacro/clash/releases | ||
endef | ||
|
||
define Package/$(PKG_NAME)/description | ||
clash is a cross-platform proxy software | ||
endef | ||
|
||
define Build/Prepare | ||
gzip -dc "$(DL_DIR)/$(PKG_SOURCE)" > $(PKG_BUILD_DIR)/clash-linux-$(PKG_ARCH) | ||
endef | ||
|
||
define Build/Compile | ||
endef | ||
|
||
define Package/$(PKG_NAME)/install | ||
$(INSTALL_DIR) $(1)/etc/clash | ||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/clash-linux-$(PKG_ARCH) $(1)/etc/clash/clash | ||
endef | ||
|
||
|
||
$(eval $(call BuildPackage,$(PKG_NAME))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters