verysync: add auto select latest version support (#4790)

This commit is contained in:
AmadeusGhost 2020-06-14 18:25:50 +08:00 committed by CN_SZTL
parent 34df592a6c
commit 8a641adb16
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -28,8 +28,16 @@ ifeq ($(ARCH),powerpc64)
PKG_ARCH_VERYSYNC:=ppc64
endif
LATEST_VERSION:=$(shell curl http://www.verysync.com/shell/latest)
PKG_NAME:=verysync
PKG_VERSION:=v1.4.3
ifneq ($(LATEST_VERSION),)
PKG_VERSION:=$(LATEST_VERSION)
else
PKG_VERSION:=v1.4.3
endif
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-linux-$(PKG_ARCH_VERYSYNC)-$(PKG_VERSION).tar.gz