gawk: set gawk as an alternative to awk
authorChristian Svensson <[email protected]>
Sat, 3 Aug 2024 15:41:01 +0000 (17:41 +0200)
committerDaniel Golle <[email protected]>
Sat, 3 Aug 2024 18:51:02 +0000 (19:51 +0100)
This makes it possible to build without busybox awk.

Signed-off-by: Christian Svensson <[email protected]>
utils/gawk/Makefile

index 450033615e45f5da805b97728995e7bc92f80251..a2cef3d5f63208303107f3bc91dc470979270516 100644 (file)
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=gawk
 PKG_VERSION:=5.3.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@GNU/gawk
@@ -27,6 +27,7 @@ define Package/gawk
   URL:=https://www.gnu.org/software/gawk/
   TITLE:=GNU awk
   DEPENDS:=+libncursesw +libreadline
+  ALTERNATIVES:=200:/usr/bin/awk:/usr/bin/gawk
 endef
 
 CONFIGURE_ARGS+= --disable-mpfr