Merge pull request #19372 from cotequeiroz/libgd
[feed/packages.git] / utils / grep / Makefile
1 #
2 # Copyright (C) 2010-2016 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=grep
11 PKG_VERSION:=3.8
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=@GNU/grep
16 PKG_HASH:=498d7cc1b4fb081904d87343febb73475cf771e424fb7e6141aff66013abc382
17
18 PKG_MAINTAINER:=Julen Landa Alustiza <julen@zokormazo.info>
19 PKG_LICENSE:=GPL-3.0-or-later
20 PKG_LICENSE_FILES:=COPYING
21 PKG_CPE_ID:=cpe:/a:gnu:grep
22
23 PKG_INSTALL:=1
24 PKG_BUILD_PARALLEL:=1
25
26 MAKE_FLAGS += SHELL="/bin/sh"
27
28 include $(INCLUDE_DIR)/package.mk
29
30 define Package/grep
31 SECTION:=utils
32 CATEGORY:=Utilities
33 TITLE:=grep search utility - full version
34 DEPENDS:=+libpcre2
35 URL:=https://www.gnu.org/software/grep/
36 ALTERNATIVES:=\
37 300:/bin/egrep:/usr/libexec/egrep-gnu \
38 300:/bin/fgrep:/usr/libexec/fgrep-gnu \
39 300:/bin/grep:/usr/libexec/grep-gnu
40 endef
41
42 define Package/grep/description
43 The grep command searches one or more input files for lines
44 containing a match to a specified pattern. By default, grep
45 prints the matching lines.
46 endef
47
48 define Package/grep/install
49 $(INSTALL_DIR) $(1)/usr/libexec
50 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/egrep $(1)/usr/libexec/egrep-gnu
51 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fgrep $(1)/usr/libexec/fgrep-gnu
52 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/grep $(1)/usr/libexec/grep-gnu
53 endef
54
55 $(eval $(call BuildPackage,grep))