mirror of
https://github.com/openwrt/packages.git
synced 2025-02-07 03:29:52 +00:00
f73bf31744
- Add patch to fix build on riscv64 Signed-off-by: Aleksey Vasilenko <aleksey.vasilenko@gmail.com>
48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Copyright (C) 2023 Luca Barbato and Donald Hoskins
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=ripgrep
|
|
PKG_VERSION:=14.1.1
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://codeload.github.com/BurntSushi/ripgrep/tar.gz/$(PKG_VERSION)?
|
|
PKG_HASH:=4dad02a2f9c8c3c8d89434e47337aa654cb0e2aa50e806589132f186bf5c2b66
|
|
|
|
PKG_MAINTAINER:=Luca Barbato <lu_zero@luminem.org>
|
|
PKG_LICENSE:=MIT Unlicense
|
|
PKG_LICENSE_FILES:=LICENSE-MIT UNLICENSE
|
|
PKG_CPE_ID:=cpe:/a:ripgrep_project:ripgrep
|
|
|
|
PKG_BUILD_DEPENDS:=rust/host
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
RUST_PKG_FEATURES:=pcre2
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include ../../lang/rust/rust-package.mk
|
|
|
|
## Force pcre2-sys crate to link dynamically with libpcre2
|
|
export PCRE2_SYS_STATIC=0
|
|
## Most optimized profile
|
|
CARGO_PKG_PROFILE:=release-lto
|
|
|
|
define Package/ripgrep
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=ripgrep (rg) regex grep
|
|
DEPENDS:=$(RUST_ARCH_DEPENDS) +libpcre2
|
|
URL:=https://github.com/BurntSushi/ripgrep
|
|
endef
|
|
|
|
define Package/ripgrep/description
|
|
ripgrep (rg) recursively searches directories for a regex pattern
|
|
while respecting your gitignore
|
|
endef
|
|
|
|
$(eval $(call RustBinPackage,ripgrep))
|
|
$(eval $(call BuildPackage,ripgrep))
|