Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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.2.1
  7. PKG_RELEASE:=2
  8. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  9. PKG_SOURCE_URL:=@GNU/gawk
  10. PKG_HASH:=673553b91f9e18cc5792ed51075df8d510c9040f550a6f74e09c9add243a7e4f
  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. CONFIGURE_ARGS+= --disable-mpfr
  25. define Package/gawk/install
  26. $(INSTALL_DIR) $(1)/usr/bin
  27. $(CP) $(PKG_INSTALL_DIR)/usr/bin/gawk $(1)/usr/bin/
  28. $(INSTALL_DIR) $(1)/usr/lib/gawk
  29. $(CP) $(PKG_INSTALL_DIR)/usr/lib/gawk/* $(1)/usr/lib/gawk/
  30. $(INSTALL_DIR) $(1)/usr/lib/awk
  31. $(CP) $(PKG_INSTALL_DIR)/usr/lib/awk/* $(1)/usr/lib/awk/
  32. $(INSTALL_DIR) $(1)/usr/share/awk
  33. $(CP) $(PKG_INSTALL_DIR)/usr/share/awk/* $(1)/usr/share/awk/
  34. endef
  35. $(eval $(call BuildPackage,gawk))