small-package/verysync/Makefile

69 lines
1.4 KiB
Makefile
Raw Normal View History

2021-09-24 23:37:27 +08:00
#
2023-02-01 20:09:57 +08:00
# Copyright (C) 2015-2016 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v3.
#
2021-09-24 23:37:27 +08:00
include $(TOPDIR)/rules.mk
2023-02-01 20:09:57 +08:00
ifeq ($(ARCH),x86_64)
PKG_ARCH_VERYSYNC:=amd64
endif
ifeq ($(ARCH),mipsel)
PKG_ARCH_VERYSYNC:=mipsle
endif
ifeq ($(ARCH),mips)
PKG_ARCH_VERYSYNC:=mips
endif
ifeq ($(ARCH),i386)
PKG_ARCH_VERYSYNC:=386
endif
ifeq ($(ARCH),arm)
PKG_ARCH_VERYSYNC:=arm
endif
2021-09-24 23:37:27 +08:00
ifeq ($(ARCH),aarch64)
2023-02-01 20:09:57 +08:00
PKG_ARCH_VERYSYNC:=arm64
endif
ifeq ($(ARCH),powerpc64)
PKG_ARCH_VERYSYNC:=ppc64
2021-09-24 23:37:27 +08:00
endif
PKG_NAME:=verysync
2023-02-01 20:09:57 +08:00
PKG_VERSION:=v2.13.2
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-linux-$(PKG_ARCH_VERYSYNC)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://dl.verysync.com/releases/$(PKG_VERSION)/
PKG_HASH:=skip
2023-01-31 23:36:55 +08:00
2023-02-01 00:18:50 +08:00
include $(INCLUDE_DIR)/package.mk
2023-01-31 23:36:55 +08:00
2023-02-01 20:09:57 +08:00
define Package/$(PKG_NAME)
SECTION:=net
CATEGORY:=Network
TITLE:=A efficient data transmission tool
DEPENDS:=
URL:=http://www.verysync.com
endef
define Package/$(PKG_NAME)/description
Verysync is a efficient data transmission tool.
endef
define Build/Prepare
tar -xzvf $(DL_DIR)/$(PKG_SOURCE) -C $(PKG_BUILD_DIR)
endef
define Build/Configure
2021-09-24 23:37:27 +08:00
endef
define Build/Compile
endef
2023-02-01 20:09:57 +08:00
define Package/$(PKG_NAME)/install
2021-09-24 23:37:27 +08:00
$(INSTALL_DIR) $(1)/usr/bin
2023-02-01 20:09:57 +08:00
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME)-linux-$(PKG_ARCH_VERYSYNC)-$(PKG_VERSION)/verysync $(1)/usr/bin/verysync
2021-09-24 23:37:27 +08:00
endef
2023-02-01 20:09:57 +08:00
$(eval $(call BuildPackage,$(PKG_NAME)))