mirror of
https://github.com/openwrt/packages.git
synced 2026-11-28 23:03:27 +04:00
bottom: use the build system's Rust support
Build with rust-package.mk of the build system from a vendor tarball generated from the GitHub tag archive, so that cargo builds offline. bottom builds with the Rust toolchain of the build system when one is selected, and with rust/host of this feed otherwise. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
1 parent
18af3f1ba0
commit
3c88ccaa05
1 file changed
+10
-7
+10
-7
@@ -6,27 +6,30 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=bottom
|
||||
PKG_VERSION:=0.11.1
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/ClementTsang/bottom/tar.gz/$(PKG_VERSION)?
|
||||
PKG_HASH:=0095ea9edb386ad7c49d845176314097713661d22ec42314e3be46426bc769ee
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-vendor.tar.zst
|
||||
PKG_SOURCE_URL:=@OPENWRT
|
||||
PKG_SOURCE_PROTO:=cargo-vendor-github
|
||||
PKG_VENDOR_REPO:=ClementTsang/bottom
|
||||
PKG_VENDOR_TAG:=$(PKG_VERSION)
|
||||
PKG_VENDOR_HASH:=0095ea9edb386ad7c49d845176314097713661d22ec42314e3be46426bc769ee
|
||||
PKG_HASH:=2154c30f6ffbdbd432f854d59e67ef731e2740eb45e83ad4363118b9ae81cbe4
|
||||
|
||||
PKG_MAINTAINER:=Luca Barbato <lu_zero@luminem.org>
|
||||
PKG_LICENSE:=MIT
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
PKG_BUILD_DEPENDS:=rust/host
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include ../../lang/rust/rust-package.mk
|
||||
include $(INCLUDE_DIR)/rust-package.mk
|
||||
|
||||
define Package/bottom
|
||||
SECTION:=admin
|
||||
CATEGORY:=Administration
|
||||
TITLE:=Interactive processes viewer
|
||||
DEPENDS:=$(RUST_ARCH_DEPENDS)
|
||||
DEPENDS:=$(RUST_PKG_DEPENDS)
|
||||
URL:=https://github.com/ClementTsang/bottom
|
||||
endef
|
||||
|
||||
|
||||
Reference in new issue
Block a user