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.

52 lines
1.2 KiB

  1. #
  2. # Copyright (C) 2008-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=patch
  9. PKG_VERSION:=2.7.6
  10. PKG_RELEASE:=6
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@GNU/patch
  13. PKG_HASH:=ac610bda97abe0d9f6b7c963255a11dcb196c25e337c61f94e4778d632f1d8fd
  14. PKG_LICENSE:=GPL-3.0-or-later
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_CPE_ID:=cpe:/a:gnu:patch
  17. PKG_BUILD_PARALLEL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/patch
  20. SECTION:=devel
  21. CATEGORY:=Development
  22. TITLE:=patch
  23. URL:=https://savannah.gnu.org/projects/patch/
  24. MAINTAINER:=Russell Senior <russell@personaltelco.net>
  25. endef
  26. define Package/patch/description
  27. The Patch package contains a program for modifying or creating files
  28. by applying a "patch" file typically created by the diff program.
  29. endef
  30. CONFIGURE_ARGS+= --disable-xattr
  31. define Build/Compile
  32. $(MAKE) -C $(PKG_BUILD_DIR) \
  33. DESTDIR="$(PKG_INSTALL_DIR)" \
  34. all install
  35. endef
  36. define Package/patch/install
  37. $(INSTALL_DIR) $(1)/usr/bin
  38. $(CP) $(PKG_INSTALL_DIR)/usr/bin/patch $(1)/usr/bin/
  39. endef
  40. $(eval $(call BuildPackage,patch))