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.

44 lines
1.1 KiB

  1. # This is free software, licensed under the GNU General Public License v2.
  2. # See /LICENSE for more information.
  3. #
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=gawk
  6. PKG_VERSION:=5.1.1
  7. PKG_RELEASE:=1
  8. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  9. PKG_SOURCE_URL:=@GNU/gawk
  10. PKG_HASH:=d87629386e894bbea11a5e00515fc909dc9b7249529dad9e6a3a2c77085f7ea2
  11. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  12. PKG_LICENSE:=GPL-3.0-or-later
  13. PKG_LICENSE_FILES:=COPYING
  14. PKG_INSTALL:=1
  15. PKG_BUILD_PARALLEL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/gawk
  18. SECTION:=utils
  19. CATEGORY:=Utilities
  20. URL:=https://www.gnu.org/software/gawk/
  21. TITLE:=GNU awk
  22. DEPENDS:=+libncursesw +libreadline
  23. endef
  24. define Package/gawk/install
  25. $(INSTALL_DIR) $(1)/usr/bin
  26. $(CP) $(PKG_INSTALL_DIR)/usr/bin/gawk $(1)/usr/bin/
  27. $(INSTALL_DIR) $(1)/usr/lib/gawk
  28. $(CP) $(PKG_INSTALL_DIR)/usr/lib/gawk/* $(1)/usr/lib/gawk/
  29. $(INSTALL_DIR) $(1)/usr/lib/awk
  30. $(CP) $(PKG_INSTALL_DIR)/usr/lib/awk/* $(1)/usr/lib/awk/
  31. $(INSTALL_DIR) $(1)/usr/share/awk
  32. $(CP) $(PKG_INSTALL_DIR)/usr/share/awk/* $(1)/usr/share/awk/
  33. endef
  34. $(eval $(call BuildPackage,gawk))