This allows cargo to use make's jobserver when building packages, by marking the cargo command as recursive (with the + prefix[1]) and setting MAKEFLAGS. This also: * Give cargo/x.py the build directory instead of having to change the current directory (and opening subshells) * Set PKG_BUILD_PARALLEL/HOST_BUILD_PARALLEL for Rust packages to enable the use of make's jobserver [1]: https://www.gnu.org/software/make/manual/html_node/POSIX-Jobserver.html Signed-off-by: Jeffery To <jeffery.to@gmail.com>
39 lines
978 B
Makefile
39 lines
978 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Copyright (C) 2023 Luca Barbato
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=bottom
|
|
PKG_VERSION:=0.9.4
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://codeload.github.com/ClementTsang/bottom/tar.gz/$(PKG_VERSION)?
|
|
PKG_HASH:=199123ef354bcabaa8a2e3b7b477b324f5b647d503a2599d08296733846eea6e
|
|
|
|
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
|
|
|
|
define Package/bottom
|
|
SECTION:=admin
|
|
CATEGORY:=Administration
|
|
TITLE:=Interactive processes viewer
|
|
DEPENDS:=$(RUST_ARCH_DEPENDS)
|
|
URL:=https://github.com/ClementTsang/bottom
|
|
endef
|
|
|
|
define Package/bottom/description
|
|
A customizable cross-platform graphical process/system monitor
|
|
for the terminal.
|
|
endef
|
|
|
|
$(eval $(call RustBinPackage,bottom))
|
|
$(eval $(call BuildPackage,bottom))
|