mirror of
https://github.com/openwrt/packages.git
synced 2025-12-26 13:26:17 +04:00
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>
46 lines
1.0 KiB
Makefile
46 lines
1.0 KiB
Makefile
#
|
|
# Copyright (C) 2022 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=kitty-terminfo
|
|
PKG_VERSION:=0.24.4
|
|
PKG_RELEASE:=2
|
|
|
|
PKG_LICENSE:=GPL-3.0-only
|
|
|
|
PKG_SOURCE:=kitty-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://codeload.github.com/kovidgoyal/kitty/tar.gz/v$(PKG_VERSION)?
|
|
PKG_HASH:=e6619b635b5c9d6cebbba631a2175659698068ce1cd946732dc440b0f1c12ab3
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/kitty-$(PKG_VERSION)
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/kitty-terminfo
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
SUBMENU:=Terminal
|
|
TITLE:=Terminfo for kitty, an OpenGL-based terminal emulator
|
|
DEPENDS:=+libncurses
|
|
URL:=https://sw.kovidgoyal.net/kitty/
|
|
PKGARCH:=all
|
|
endef
|
|
|
|
define Build/Configure
|
|
endef
|
|
|
|
define Build/Compile
|
|
endef
|
|
|
|
define Package/kitty-terminfo/install
|
|
$(INSTALL_DIR) $(1)/usr/share/terminfo
|
|
tic -x -o $(1)/usr/share/terminfo $(PKG_BUILD_DIR)/terminfo/kitty.terminfo
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,kitty-terminfo))
|