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.

43 lines
1.1 KiB

  1. #
  2. # Copyright (C) 2016 Amnon Paz <pazamnon@gmail.com>
  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-openssl
  9. PKG_VERSION:=0.6.0
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Amnon Paz <pazamnon@gmail.com>
  12. PKG_LICENSE:=MIT
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  14. PKG_MIRROR_HASH:=33de8fa469f66bbf6df09c4ba4e3386c0613cc061f5adff0928d532af6905773
  15. PKG_SOURCE_URL:=https://github.com/zhaozg/lua-openssl.git
  16. PKG_SOURCE_PROTO:=git
  17. PKG_SOURCE_VERSION:=1b950e6ff8617205cda1a1b612637ef21b9daf96
  18. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/lua-openssl
  21. SUBMENU:=Lua
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. TITLE:=Lua openSSL binding
  25. URL:=http://github.com/zhaozg/lua-openssl
  26. DEPENDS:=+lua +libopenssl +librt
  27. endef
  28. define Package/lua-openssl/description
  29. A free, MIT-licensed OpenSSL binding for Lua.
  30. endef
  31. define Package/lua-openssl/install
  32. $(INSTALL_DIR) $(1)/usr/lib/lua
  33. $(INSTALL_BIN) $(PKG_BUILD_DIR)/openssl.so $(1)/usr/lib/lua/
  34. endef
  35. $(eval $(call BuildPackage,lua-openssl))