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.

45 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:=4.1.4
  7. PKG_RELEASE:=1
  8. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  9. PKG_SOURCE_URL:=@GNU/gawk
  10. PKG_HASH:=53e184e2d0f90def9207860531802456322be091c7b48f23fdc79cda65adc266
  11. PKG_LICENSE:=GPL
  12. PKG_LICENSE_FILES:=COPYING
  13. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  14. PKG_BUILD_PARALLEL:=1
  15. PKG_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/gawk
  18. SECTION:=utils
  19. CATEGORY:=Utilities
  20. URL:=http://tukaani.org/xz
  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,igawk} $(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))