Merge pull request #12342 from PolynomialDivision/feature/add_dawn_node_exporter
[feed/packages.git] / utils / which / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=which
4 PKG_VERSION:=2.21
5 PKG_RELEASE:=1
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
8 PKG_SOURCE_URL:=@GNU/which
9 PKG_HASH:=f4a245b94124b377d8b49646bf421f9155d36aa7614b6ebf83705d3ffc76eaad
10
11 PKG_MAINTAINER:=Huangbin Zhan <zhanhb88@gmail.com>
12 PKG_LICENSE:=GPL-2.0-or-later
13 PKG_LICENSE_FILES:=COPYING
14
15 PKG_INSTALL:=1
16 PKG_BUILD_PARALLEL:=1
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/which
21 SECTION:=utils
22 CATEGORY:=Utilities
23 TITLE:=which utility - full version
24 URL:=https://carlowood.github.io/which/
25 ALTERNATIVES:=300:/usr/bin/which:/usr/libexec/which-gnu
26 endef
27
28 define Package/which/description
29 The which command shows the full pathname of a specified program, if the specified program is in your PATH.
30 endef
31
32 define Package/which/install
33 $(INSTALL_DIR) $(1)/usr/libexec
34 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/which $(1)/usr/libexec/which-gnu
35 endef
36
37 $(eval $(call BuildPackage,which))