ripgrep: adapt new rust build standard

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2023-03-19 14:17:58 +08:00 committed by Tianling Shen
parent 094a1b4d14
commit bc4d9429de

View file

@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=ripgrep PKG_NAME:=ripgrep
PKG_VERSION:=13.0.0 PKG_VERSION:=13.0.0
PKG_RELEASE:=1 PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/BurntSushi/ripgrep/tar.gz/$(PKG_VERSION)? PKG_SOURCE_URL:=https://codeload.github.com/BurntSushi/ripgrep/tar.gz/$(PKG_VERSION)?
@ -18,12 +18,10 @@ PKG_LICENSE_FILES:=LICENSE-MIT UNLICENSE
PKG_BUILD_DEPENDS:=rust/host PKG_BUILD_DEPENDS:=rust/host
include ../../lang/rust/rust-package.mk RUST_PKG_FEATURES:=pcre2
include $(INCLUDE_DIR)/package.mk
define Build/Compile include $(INCLUDE_DIR)/package.mk
$(call Build/Compile/Cargo,, --features 'pcre2') include ../../lang/rust/rust-package.mk
endef
define Package/ripgrep define Package/ripgrep
SECTION:=utils SECTION:=utils
@ -38,9 +36,5 @@ define Package/ripgrep/description
while respecting your gitignore while respecting your gitignore
endef endef
define Package/ripgrep/install $(eval $(call RustBinPackage,ripgrep))
$(INSTALL_DIR) $(1)/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/target/$(RUSTC_TARGET_ARCH)/stripped/rg $(1)/bin/rg
endef
$(eval $(call BuildPackage,ripgrep)) $(eval $(call BuildPackage,ripgrep))