2014-06-16 08:59:44 +00:00
|
|
|
#
|
2015-01-26 14:57:50 +00:00
|
|
|
# Copyright (C) 2008-2015 OpenWrt.org
|
2014-06-16 08:59:44 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=patch
|
2018-02-12 08:39:29 +00:00
|
|
|
PKG_VERSION:=2.7.6
|
2022-08-25 15:03:33 +00:00
|
|
|
PKG_RELEASE:=7
|
2014-06-16 08:59:44 +00:00
|
|
|
|
2014-08-02 08:39:02 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
2014-06-16 08:59:44 +00:00
|
|
|
PKG_SOURCE_URL:=@GNU/patch
|
2018-02-12 08:39:29 +00:00
|
|
|
PKG_HASH:=ac610bda97abe0d9f6b7c963255a11dcb196c25e337c61f94e4778d632f1d8fd
|
2018-10-10 20:06:03 +00:00
|
|
|
|
2019-09-02 13:15:08 +00:00
|
|
|
PKG_LICENSE:=GPL-3.0-or-later
|
2014-08-02 08:34:16 +00:00
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2018-10-10 20:06:03 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:gnu:patch
|
|
|
|
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
2014-06-16 08:59:44 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/patch
|
|
|
|
SECTION:=devel
|
|
|
|
CATEGORY:=Development
|
|
|
|
TITLE:=patch
|
2018-10-10 20:06:03 +00:00
|
|
|
URL:=https://savannah.gnu.org/projects/patch/
|
2014-06-16 08:59:44 +00:00
|
|
|
MAINTAINER:=Russell Senior <russell@personaltelco.net>
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/patch/description
|
|
|
|
The Patch package contains a program for modifying or creating files
|
|
|
|
by applying a "patch" file typically created by the diff program.
|
|
|
|
endef
|
|
|
|
|
2014-06-30 20:41:13 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-xattr
|
2014-06-30 18:55:17 +00:00
|
|
|
|
2014-06-16 08:59:44 +00:00
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/patch/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/patch $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,patch))
|