You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
943 B

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