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.

49 lines
1.2 KiB

  1. #
  2. # Copyright (C) 2006-2020 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=lua-argparse
  9. PKG_VERSION:=0.6.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/mpeterv/argparse/tar.gz/$(PKG_VERSION)?
  13. PKG_HASH:=0eddda29d591536bc7310b99ce7acc3e5e00557f18d6e63ab10d56683e8952f1
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/argparse-$(PKG_VERSION)
  15. PKG_MAINTAINER:=Vladimir Malyutin <first-leon@yandex.ru>
  16. PKG_LICENSE:=MIT
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/lua-argparse
  19. SUBMENU:=Lua
  20. SECTION:=lang
  21. CATEGORY:=Languages
  22. TITLE:=lua-argparse
  23. URL:=https://github.com/mpeterv/argparse
  24. DEPENDS:=+lua
  25. PKGARCH:=all
  26. endef
  27. define Package/lua-argparse/description
  28. Argparse is a feature-rich command line parser for Lua inspired by argparse for Python.
  29. endef
  30. define Build/Configure
  31. endef
  32. define Build/Compile
  33. endef
  34. define Package/lua-argparse/install
  35. $(INSTALL_DIR) $(1)/usr/lib/lua
  36. $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/argparse.lua $(1)/usr/lib/lua/
  37. endef
  38. $(eval $(call BuildPackage,lua-argparse))