mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-08-01 23:19:33 +08:00
64 lines
1.4 KiB
Makefile
64 lines
1.4 KiB
Makefile
# SPDX-License-Identifier: GPL-3.0-only
|
|
# Copyright (c) 2022-2026 sirpdboy herboy2008@gmail.com
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=homebox
|
|
PKG_VERSION:=1.0.1
|
|
PKG_RELEASE:=5
|
|
|
|
ifneq ($(filter aarch64%,$(ARCH)),)
|
|
PKG_ARCH:=arm64
|
|
PKG_HASH:=skip
|
|
else ifneq ($(filter arm%,$(ARCH)),)
|
|
PKG_ARCH:=armv7
|
|
PKG_HASH:=skip
|
|
else ifeq ($(ARCH),i386)
|
|
PKG_ARCH:=386
|
|
PKG_HASH:=skip
|
|
else ifeq ($(ARCH),x86_64)
|
|
PKG_ARCH:=amd64
|
|
PKG_HASH:=skip
|
|
else
|
|
$(error Unsupported architecture: $(ARCH))
|
|
endif
|
|
|
|
PKG_SOURCE:=homebox-linux-$(PKG_ARCH)-musl-v$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://github.com/sirpdboy/homebox/releases/download/v$(PKG_VERSION)/
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/$(PKG_NAME)
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
SUBMENU:=Speed Test
|
|
TITLE:=Home Local Network Speed Test Tool
|
|
URL:=https://github.com/XGHeaven/homebox
|
|
DEPENDS:=@(i386||x86_64||arm||aarch64)
|
|
MAINTAINER:=sirpdboy <herboy2008@gmail.com>
|
|
endef
|
|
|
|
define Package/$(PKG_NAME)/description
|
|
A Toolbox for Home Local Networks Speed Test
|
|
endef
|
|
|
|
define Build/Prepare
|
|
( \
|
|
pushd $(PKG_BUILD_DIR) ; \
|
|
$(TAR) -zxf $(DL_DIR)/$(PKG_SOURCE) -C . ; \
|
|
popd ; \
|
|
)
|
|
endef
|
|
|
|
define Build/Compile
|
|
endef
|
|
|
|
define Package/$(PKG_NAME)/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/homebox $(1)/usr/bin/homebox
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,$(PKG_NAME))) |