1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

update app

This commit is contained in:
suyuan 2023-06-23 02:14:05 +08:00
parent b8ec680e11
commit 8836ce80c2
255 changed files with 9752 additions and 23582 deletions

72
speedtestcpp/Makefile Executable file → Normal file
View file

@ -1,42 +1,66 @@
#
# Copyright (C) 2021 Ycarus (Yannick Chabanois) <ycarus@zugaina.org> for OpenMPTCProuter project
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=speedtestcpp
PKG_VERSION:=1.12
PKG_RELEASE:=2
PKG_VERSION:=1.20.2
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=a01ae6eb04c5d3f4847aef73bf77849275ccc6eb
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/fmantz/SpeedTest.git
PKG_SOURCE_URL:=https://codeload.github.com/oskarirauta/speedtestcpp/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=7d5c85f1d9a46f7d8a3ac4261ef1f92e53c511430bae096f7ec6f12a33d38904
PKG_MAINTAINER:=Ycarus <ycarus@zugaina.org>
PKG_MAINTAINER:=Oskari Rauta <oskari.rauta@gmail.com>
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
CMAKE_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/libspeedtestcpp
SECTION:=libs
CATEGORY:=Libraries
TITLE:=library for ookla's speedtest
DEPENDS:=+libcurl +libstdcpp
URL:=https://github.com/oskarirauta/speedtestcpp
endef
define Package/libspeedtestcpp/description
Shared library that provides support for ookla's speedtest
endef
define Package/speedtestcpp
SECTION:=net
CATEGORY:=Network
TITLE:=Yet another unofficial speedtest.net client cli interface
URL:=https://github.com/fmantz/SpeedTest
DEPENDS:=+curl +libstdcpp +libopenssl +libxml2
SECTION:=net
CATEGORY:=Network
TITLE:=SpeedTest++
DEPENDS:=+libspeedtestcpp +libstdcpp
URL:=https://github.com/oskarirauta/speedtestcpp
PROVIDES:=speedtestpp
endef
define Package/speedtestcpp/description
Yet another unofficial speedtest.net client cli interface
forked from taganaka's SpeedTest with few improments and
lesser depends.
endef
TARGET_CXXFLAGS += --std=c++23 -fPIC
define Build/Configure
endef
define Package/libspeedtestcpp/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/libspeedtestcpp.so* $(1)/usr/lib/
endef
define Package/speedtestcpp/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/SpeedTest $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/speedtestJson $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/speedtest $(1)/usr/bin/
endef
$(eval $(call BuildPackage,speedtestcpp))
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/lib $(1)/usr/include/speedtest
$(CP) $(PKG_BUILD_DIR)/libspeedtestcpp.{so*,a} $(1)/usr/lib/
$(CP) $(PKG_BUILD_DIR)/include/speedtest/*.hpp $(1)/usr/include/speedtest/
endef
$(eval $(call BuildPackage,libspeedtestcpp))
$(eval $(call BuildPackage,speedtestcpp))