2014-12-19 19:44:13 +08:00
|
|
|
#
|
2015-10-17 03:39:19 +08:00
|
|
|
# Copyright (C) 2010-2015 OpenWrt.org
|
2014-12-19 19:44:13 +08:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=less
|
2021-12-16 11:20:38 +08:00
|
|
|
PKG_VERSION:=598
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-22 00:32:27 +08:00
|
|
|
PKG_RELEASE:=1
|
2014-12-19 19:44:13 +08:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2021-10-21 03:49:31 +08:00
|
|
|
PKG_SOURCE_URL:= @GNU/less \
|
|
|
|
http://www.greenwoodsoftware.com/less
|
2021-12-16 11:20:38 +08:00
|
|
|
PKG_HASH:=64e0eb24534ac70d15ff3a36c8853f7a48196aa230d2a104707fc4ff1a45e982
|
2014-12-19 19:44:13 +08:00
|
|
|
|
2020-06-07 11:29:32 +08:00
|
|
|
PKG_LICENSE:=GPL-3.0-or-later
|
2014-12-19 19:44:13 +08:00
|
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
PKG_MAINTAINER:=Julen Landa Alustiza <julen@zokormazo.info>
|
2019-09-12 20:13:21 +08:00
|
|
|
PKG_CPE_ID:=cpe:/a:gnu:less
|
2014-12-19 19:44:13 +08:00
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2021-10-21 03:49:31 +08:00
|
|
|
define Package/less
|
2014-12-19 19:44:13 +08:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=Pager program similar to more
|
|
|
|
URL:=http://www.greenwoodsoftware.com/less/
|
2020-12-09 06:30:54 +08:00
|
|
|
ALTERNATIVES:=200:/usr/bin/less:/usr/libexec/less-gnu
|
2014-12-19 19:44:13 +08:00
|
|
|
DEPENDS:=+libncursesw
|
2021-10-21 03:49:31 +08:00
|
|
|
PROVIDES:=less-wide
|
2014-12-19 19:44:13 +08:00
|
|
|
endef
|
|
|
|
|
2021-10-21 03:49:31 +08:00
|
|
|
define Package/less/description
|
|
|
|
Full version of GNU less utility
|
2014-12-19 19:44:13 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/less/install
|
2020-12-09 06:30:54 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/libexec
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/less $(1)/usr/libexec/less-gnu
|
2014-12-19 19:44:13 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,less))
|