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.

48 lines
1.1 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.5
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@GNU/patch
  13. PKG_HASH:=fd95153655d6b95567e623843a0e77b81612d502ecf78a489a4aed7867caa299
  14. PKG_LICENSE:=GPL-3.0+
  15. PKG_LICENSE_FILES:=COPYING
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/patch
  18. SECTION:=devel
  19. CATEGORY:=Development
  20. TITLE:=patch
  21. URL:=http://www.gnu.org/
  22. MAINTAINER:=Russell Senior <russell@personaltelco.net>
  23. endef
  24. define Package/patch/description
  25. The Patch package contains a program for modifying or creating files
  26. by applying a "patch" file typically created by the diff program.
  27. endef
  28. CONFIGURE_ARGS+= --disable-xattr
  29. define Build/Compile
  30. $(MAKE) -C $(PKG_BUILD_DIR) \
  31. DESTDIR="$(PKG_INSTALL_DIR)" \
  32. all install
  33. endef
  34. define Package/patch/install
  35. $(INSTALL_DIR) $(1)/usr/bin
  36. $(CP) $(PKG_INSTALL_DIR)/usr/bin/patch $(1)/usr/bin/
  37. endef
  38. $(eval $(call BuildPackage,patch))