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.

55 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2015 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-rings
  9. PKG_VERSION:=1.3.0
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com>
  12. PKG_LICENSE:=MIT
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_MIRROR_HASH:=7026ce5898d37a4175b7afad693d59ff1fff1a84adafcabfafd065956a03616c
  15. PKG_SOURCE_URL:=https://github.com/keplerproject/rings.git
  16. PKG_SOURCE_PROTO:=git
  17. PKG_SOURCE_VERSION:=2b8a900f8b9dbde304859a3ac9d437795c3fdde3
  18. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  19. PKG_FIXUP:=autoreconf
  20. PKG_INSTALL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/lua-rings
  23. SUBMENU:=Lua
  24. SECTION:=lang
  25. CATEGORY:=Languages
  26. TITLE:=Lua-Rings
  27. URL:=http://keplerproject.github.io/rings/
  28. DEPENDS:=+lua
  29. endef
  30. define Package/lua-rings/description
  31. Rings is a library which provides a way to create new Lua states from within Lua.
  32. endef
  33. TARGET_CFLAGS += $(FPIC)
  34. # add make variable overrides here
  35. MAKE_FLAGS +=
  36. define Build/Configure
  37. endef
  38. define Package/lua-rings/install
  39. $(INSTALL_DIR) $(1)/usr/lib/lua
  40. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/rings.so $(1)/usr/lib/lua
  41. $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/stable.lua $(1)/usr/lib/lua
  42. endef
  43. $(eval $(call BuildPackage,lua-rings))