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.0
  7. PKG_RELEASE:=1
  8. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  9. PKG_SOURCE_URL:=@GNU/gawk
  10. PKG_HASH:=cf5fea4ac5665fd5171af4716baab2effc76306a9572988d5ba1078f196382bd
  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))