mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-13 19:11:51 +00:00
66 lines
1.6 KiB
Makefile
66 lines
1.6 KiB
Makefile
#
|
|
# Copyright (C) 2018-2019 chenhw2 <https://github.com/chenhw2>
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v3.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=v2ray-plugin
|
|
PKG_VERSION:=1.0
|
|
PKG_RELEASE:=8cea1a3
|
|
PKG_MAINTAINER:=chenhw2 <https://github.com/chenhw2>
|
|
|
|
# OpenWrt ARCH: arm, i386, x86_64, mips, mipsel
|
|
# Golang ARCH: arm[5-7], 386, amd64, mips, mipsle
|
|
PKG_ARCH:=$(ARCH)
|
|
BIN_ARCH:=$(ARCH)
|
|
ifeq ($(ARCH),mipsel)
|
|
PKG_ARCH:=mips
|
|
BIN_ARCH:=mipsle
|
|
endif
|
|
ifeq ($(ARCH),i386)
|
|
PKG_ARCH:=386
|
|
BIN_ARCH:=386
|
|
endif
|
|
ifeq ($(ARCH),x86_64)
|
|
PKG_ARCH:=amd64
|
|
BIN_ARCH:=amd64
|
|
endif
|
|
ifeq ($(ARCH),arm)
|
|
BIN_ARCH:=arm7
|
|
endif
|
|
|
|
PKG_SOURCE:=v2ray-plugin-linux-$(PKG_ARCH)-$(PKG_RELEASE).tar.gz
|
|
PKG_SOURCE_URL:=https://github.com/shadowsocks/v2ray-plugin/releases/download/v$(PKG_VERSION)/
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
PKG_HASH:=skip
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/v2ray-plugin
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
TITLE:=SIP003 plugin for shadowsocks, based on v2ray
|
|
URL:=https://github.com/shadowsocks/v2ray-plugin
|
|
endef
|
|
|
|
define Package/v2ray-plugin/description
|
|
Yet another SIP003 plugin for shadowsocks, based on v2ray
|
|
endef
|
|
|
|
define Build/Prepare
|
|
gzip -dc "$(DL_DIR)/$(PKG_SOURCE)" | tar -C $(PKG_BUILD_DIR)/ -xf -
|
|
endef
|
|
|
|
define Build/Compile
|
|
echo "$(PKG_NAME)Compile Skiped!"
|
|
endef
|
|
|
|
define Package/v2ray-plugin/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/v2ray-plugin_linux_$(BIN_ARCH) $(1)/usr/bin/v2ray-plugin
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,v2ray-plugin))
|