mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-07-27 10:31:38 +08:00
🎈 Sync 2026-06-07 08:46:49
This commit is contained in:
parent
9ec97e7bdd
commit
be497a5448
@ -1,65 +1,41 @@
|
||||
#
|
||||
# Copyright (C) 2024 sbwml <admin@cooluc.com>
|
||||
# Copyright (c) 2025-2026 sirpdboy <herboy2008@gmail.com>
|
||||
#
|
||||
# This is free software, licensed under the GPL-3.0 License.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=ookla-speedtest
|
||||
PKG_VERSION:=1.2.0
|
||||
PKG_RELEASE:=11
|
||||
PKG_RELEASE:=12
|
||||
PKG_MAINTAINER:=Konstantine Shevlakov <shevlakov@132lan.ru>
|
||||
|
||||
ifeq ($(ARCH),aarch64)
|
||||
PKG_ARCH_SUFFIX:=aarch64
|
||||
PKG_HASH:=skip
|
||||
else ifeq ($(ARCH),arm)
|
||||
ARM_CPU_FEATURES:=$(word 2,$(subst +,$(space),$(call qstrip,$(CONFIG_CPU_TYPE))))
|
||||
ifeq ($(ARM_CPU_FEATURES),)
|
||||
PKG_ARCH_SUFFIX:=armel
|
||||
PKG_HASH:=skip
|
||||
else
|
||||
PKG_ARCH_SUFFIX:=armhf
|
||||
PKG_HASH:=skip
|
||||
endif
|
||||
else ifeq ($(ARCH),i386)
|
||||
PKG_ARCH_SUFFIX:=i386
|
||||
PKG_HASH:=skip
|
||||
else ifeq ($(ARCH),x86_64)
|
||||
PKG_ARCH_SUFFIX:=x86_64
|
||||
PKG_HASH:=skip
|
||||
endif
|
||||
|
||||
PKG_SOURCE:=ookla-speedtest-$(PKG_VERSION)-linux-$(PKG_ARCH_SUFFIX).tgz
|
||||
PKG_SOURCE_URL:=https://install.speedtest.net/app/cli
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-$(PKG_ARCH_SUFFIX)
|
||||
|
||||
PKG_MAINTAINER:=sbwml <admin@cooluc.com>
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/$(PKG_NAME)
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
SUBMENU:=Speed Test
|
||||
TITLE:=Speedtest CLI by Ookla
|
||||
URL:=https://www.speedtest.net/
|
||||
DEPENDS:=@(aarch64||arm||i386||x86_64) +ca-certificates
|
||||
URL:=https://www.speedtest.net/
|
||||
TITLE:=Speedtest from Ookla
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
endef
|
||||
|
||||
ifeq ($(ARCH),x86_64)
|
||||
BIN_PATH:=./files/x86_64
|
||||
endif
|
||||
ifeq ($(ARCH),i386)
|
||||
BIN_PATH:=./files/i386
|
||||
endif
|
||||
ifeq ($(ARCH),arm)
|
||||
BIN_PATH:=./files/armhf
|
||||
endif
|
||||
ifeq ($(ARCH),aarch64)
|
||||
BIN_PATH:=./files/aarch64
|
||||
endif
|
||||
|
||||
define Package/$(PKG_NAME)/description
|
||||
Speedtest CLI by Ookla is the official command line client
|
||||
for testing internet bandwidth using speedtest.net servers.
|
||||
Speedtest CLI brings the trusted technology and global server network behind Speedtest to the command line.
|
||||
Built for software developers, system administrators and computer enthusiasts alike,
|
||||
Speedtest CLI is the first official Linux-native Speedtest application backed by Ookla®.
|
||||
endef
|
||||
|
||||
|
||||
define Build/Prepare
|
||||
( \
|
||||
pushd $(PKG_BUILD_DIR) ; \
|
||||
$(TAR) -zxf $(DL_DIR)/ookla-speedtest-$(PKG_VERSION)-linux-$(PKG_ARCH_SUFFIX).tgz -C . ; \
|
||||
popd ; \
|
||||
)
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
@ -67,7 +43,9 @@ endef
|
||||
|
||||
define Package/$(PKG_NAME)/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/speedtest $(1)/usr/bin/ookla-speedtest
|
||||
$(CP) $(BIN_PATH)/speedtest $(1)/usr/bin
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,$(PKG_NAME)))
|
||||
ifeq ($(ARCH),$(filter $(ARCH), x86_64 i386 arm aarch64))
|
||||
$(eval $(call BuildPackage,$(PKG_NAME)))
|
||||
endif
|
||||
|
||||
BIN
ookla-speedtest/files/aarch64/speedtest
Executable file
BIN
ookla-speedtest/files/aarch64/speedtest
Executable file
Binary file not shown.
BIN
ookla-speedtest/files/armhf/speedtest
Executable file
BIN
ookla-speedtest/files/armhf/speedtest
Executable file
Binary file not shown.
BIN
ookla-speedtest/files/i386/speedtest
Executable file
BIN
ookla-speedtest/files/i386/speedtest
Executable file
Binary file not shown.
BIN
ookla-speedtest/files/x86_64/speedtest
Executable file
BIN
ookla-speedtest/files/x86_64/speedtest
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user