@ -5,19 +5,19 @@
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := v2rayA
PKG_VERSION := 1.5.7
PKG_VERSION := 1.5.8.1
PKG_RELEASE := $( AUTORELEASE)
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := https://codeload.github.com/v2rayA/v2rayA/tar.gz/v$( PKG_VERSION) ?
PKG_HASH := 6d203ef95ac2a48f6f1808b93fc1cd1a4f32a0419710d0c7a74169f27c38ed9c
PKG_HASH := 822ec4a93933d93aed1bda6f9a3c08915135c0fc33bebe5e69b293cf30fe35c2
PKG_BUILD_DIR := $( BUILD_DIR) /$( PKG_NAME) -$( PKG_VERSION) /service
PKG_LICENSE := AGPL-3.0-only
PKG_LICENSE_FILES := LICENSE
PKG_MAINTAINER := Tianling Shen <cnsztl@immortalwrt.org>
PKG_BUILD_DEPENDS := golang/host node/host node-yarn/host
PKG_BUILD_DEPENDS := golang/host
PKG_BUILD_PARALLEL := 1
PKG_USE_MIPS16 := 0
@ -58,13 +58,20 @@ define Package/v2raya/conffiles
/ e t c / c o n f i g / v 2 r a y a
e n d e f
d e f i n e B u i l d / C o m p i l e
WEB_FILE := $( PKG_NAME) -web-$( PKG_VERSION) .tar.gz
d e f i n e D o w n l o a d / v 2 r a y a - w e b
URL:= https://codeload.github.com/v2rayA/v2raya-web/tar.gz/v$( PKG_VERSION) ?
URL_FILE:= $( WEB_FILE)
FILE:= $( WEB_FILE)
HASH:= b13beac91d75c64af4ca6d7365716968702ce1be3f0c3e94d26e01daa07f223b
e n d e f
d e f i n e B u i l d / P r e p a r e
$( call Build/Prepare/Default)
( \
pushd $( PKG_BUILD_DIR) /../gui ; \
yarn ; \
OUTPUT_DIR = ../service/server/router/web yarn build ; \
popd ; \
$( call GoPackage/Build/Compile) ; \
mkdir -p $( PKG_BUILD_DIR) /server/router/web ; \
gzip -dc $( DL_DIR) /$( WEB_FILE) | $( HOST_TAR) -C $( PKG_BUILD_DIR) /server/router/web $( TAR_OPTIONS) ; \
)
e n d e f
@ -79,5 +86,6 @@ define Package/v2raya/install
$( INSTALL_BIN) $( CURDIR) /files/v2raya.init $( 1) /etc/init.d/v2raya
e n d e f
$( eval $ ( call Download ,v 2raya -web ) )
$( eval $ ( call GoBinPackage ,v 2raya ) )
$( eval $ ( call BuildPackage ,v 2raya ) )